用户管理接口完成
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user