From eb2bbfe0b47a58ee06fa8955126128d32637b2fc Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Tue, 11 Apr 2023 11:11:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=BB=98=E8=AE=A4=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/admin/src/setting.js | 2 +- template/uni-app/config/app.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/template/admin/src/setting.js b/template/admin/src/setting.js index 9af4364ea..84a509ef8 100644 --- a/template/admin/src/setting.js +++ b/template/admin/src/setting.js @@ -1,5 +1,5 @@ // 请求接口地址 如果没有配置自动获取当前网址路径 -const VUE_APP_API_URL = 'http://open.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 6c3a4c7bd..b808ce61f 100644 --- a/template/uni-app/config/app.js +++ b/template/uni-app/config/app.js @@ -8,7 +8,7 @@ module.exports = { // H5配置 // #ifdef H5 //H5接口是浏览器地址,非单独部署不用修改 - HTTP_REQUEST_URL: window.location.protocol + "//" + window.location.host, + HTTP_REQUEST_URL: `https://v5.wuht.net`||window.location.protocol + "//" + window.location.host, // #endif // 以下配置在不做二开的前提下,不需要做任何的修改