From 47a2e15e5a8dff87bf29f67f69c00e39921a5c0a Mon Sep 17 00:00:00 2001 From: "chong.yanning@ebiz-digits.com" Date: Thu, 30 Oct 2025 15:48:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8E=A5=E5=8F=A3=E8=B5=B0?= =?UTF-8?q?=E4=BB=A3=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/utils/get-url.js | 2 +- src/config/index.js | 2 +- vue.config.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/assets/js/utils/get-url.js b/src/assets/js/utils/get-url.js index 3d93bca..aa9fac1 100644 --- a/src/assets/js/utils/get-url.js +++ b/src/assets/js/utils/get-url.js @@ -2,7 +2,7 @@ import config from '@/config' // import urlMap from '@/config/urlMap' export default function getUrl(url, domainType = 'admin') { - let domain = process.env.VUE_APP_ADMIN || '' + let domain = config[domainType] || '' return domain + url // return 'https://ecotest.happyinsurance.com.cn:4443/api' + url } diff --git a/src/config/index.js b/src/config/index.js index b63147b..841fc58 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -1,5 +1,5 @@ let envInfo = process.env -let [admin] = [envInfo.VUE_APP_ADMIN] +let [admin] = ['/api'] export default { admin, diff --git a/vue.config.js b/vue.config.js index 65da41d..f395146 100644 --- a/vue.config.js +++ b/vue.config.js @@ -16,7 +16,7 @@ module.exports = { https: false, proxy: { '/api': { - target: 'http://127.0.0.1:7100', + target: 'https://ecotest.happyinsurance.com.cn:4443/api', changeOrigin: true, rewrite: (path) => path.replace(/^\/api/, ''), },