用户管理接口完成

This commit is contained in:
2026-08-27 16:14:12 +08:00
parent d4be566459
commit f850774d65
6 changed files with 574 additions and 262 deletions
+4 -1
View File
@@ -5,6 +5,7 @@ import json5 from 'json5';
*
* @param env The current env
*/
let url = 'http://192.168.0.230:8086';
export function createServiceConfig(env: Env.ImportMeta) {
const { VITE_SERVICE_BASE_URL, VITE_OTHER_SERVICE_BASE_URL } = env;
@@ -15,7 +16,6 @@ export function createServiceConfig(env: Env.ImportMeta) {
// eslint-disable-next-line no-console
console.error('VITE_OTHER_SERVICE_BASE_URL is not a valid json5 string');
}
let url = 'http://192.168.0.230:8086';
if(env.DEV){
url = 'http://192.168.0.230:8086';
}else{
@@ -44,6 +44,9 @@ export function createServiceConfig(env: Env.ImportMeta) {
return config;
}
export function getBaseUrl() {
return url;
}
/**
* get backend service base url