diff --git a/template/admin/src/setting.js b/template/admin/src/setting.js index 08b6c3d06..84a509ef8 100644 --- a/template/admin/src/setting.js +++ b/template/admin/src/setting.js @@ -1,5 +1,5 @@ // 请求接口地址 如果没有配置自动获取当前网址路径 -const VUE_APP_API_URL = 'https://bz.wuht.net/adminapi' || process.env.VUE_APP_API_URL || `${location.origin}/adminapi`; +const VUE_APP_API_URL = process.env.VUE_APP_API_URL || `${location.origin}/adminapi`; const Setting = { // 路由前缀 diff --git a/template/uni-app/config/app.js b/template/uni-app/config/app.js index 6e3b9007d..9493069b5 100644 --- a/template/uni-app/config/app.js +++ b/template/uni-app/config/app.js @@ -2,13 +2,13 @@ module.exports = { // 小程序配置 // #ifdef MP || APP-PLUS // 请求域名 格式: https://您的域名 - HTTP_REQUEST_URL: `https://v4.crmeb.net`, + HTTP_REQUEST_URL: `https://demo.crmeb.com`, // #endif // H5配置 // #ifdef H5 //H5接口是浏览器地址,非单独部署不用修改 - HTTP_REQUEST_URL: `https://bz.wuht.net` || window.location.protocol + "//" + window.location.host, + HTTP_REQUEST_URL: window.location.protocol + "//" + window.location.host, // #endif