修改线上接口地址

This commit is contained in:
2026-08-31 10:05:51 +08:00
parent 76fe37d378
commit 5ecd8ac95c
5 changed files with 565 additions and 464 deletions
+3 -2
View File
@@ -5,7 +5,7 @@ import json5 from 'json5';
*
* @param env The current env
*/
let url = 'http://192.168.0.230:8086';
let url = '';
export function createServiceConfig(env: Env.ImportMeta) {
const { VITE_SERVICE_BASE_URL, VITE_OTHER_SERVICE_BASE_URL } = env;
@@ -19,7 +19,8 @@ export function createServiceConfig(env: Env.ImportMeta) {
if(env.DEV){
url = 'http://192.168.0.230:8086';
}else{
url = window.location.origin;
// url = window.location.origin;
url = 'http://192.168.0.230:8086';
}
const httpConfig: App.Service.SimpleServiceConfig = {
baseURL: url,