修改线上接口地址
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user