接口请求地址以及接口返回提示修改

This commit is contained in:
2026-08-18 14:33:59 +08:00
parent bbbdb85f6e
commit d91f7928dd
10 changed files with 24 additions and 99 deletions
+7 -2
View File
@@ -15,9 +15,14 @@ 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{
url = window.location.origin;
}
const httpConfig: App.Service.SimpleServiceConfig = {
baseURL: VITE_SERVICE_BASE_URL,
baseURL: url,
other
};