diff --git a/common/http.interceptor.js b/common/http.interceptor.js index a1cfcc2..9774a5b 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -20,7 +20,8 @@ const install = (Vue, vm) => { // }, // }); Vue.prototype.$u.http.setConfig({ - baseUrl: 'http://192.168.2.23/dev-api', + baseUrl: 'https://testlu.chuangtewl.com/prod-api', + //baseUrl: 'http://192.168.2.23/dev-api', // baseUrl: 'https://znb.ccttiot.com', loadingText: '努力加载中~', loadingTime: 800, diff --git a/main.js b/main.js index dc597d4..c3a417d 100644 --- a/main.js +++ b/main.js @@ -54,9 +54,7 @@ Vue.prototype.wxLogin = async function(){ }); }) } -Vue.prototype.$u.http.setConfig({ - baseUrl: 'http://192.168.2.7:4501' -}) + // #endif diff --git a/utils/request.js b/utils/request.js index 1edd7e3..ec84ed4 100644 --- a/utils/request.js +++ b/utils/request.js @@ -1,7 +1,8 @@ // 统一请求工具 import { getTempToken, shouldUseTempToken } from '@/config/dev.js' -const BASE_URL = 'http://192.168.2.7:4501' +// const BASE_URL = 'http://192.168.2.7:4501' +const BASE_URL = 'https://testlu.chuangtewl.com/prod-api' /** * 统一请求方法