接口请求地址以及接口返回提示修改
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user