From 9375fcf8fd44c3cb5f11e727a474766b56006208 Mon Sep 17 00:00:00 2001 From: dhy1725534722 <1725534722@qq.com> Date: Wed, 20 Sep 2023 15:16:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 3 +++ vue.config.js | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.env.production b/.env.production index bdead2a..c213c90 100644 --- a/.env.production +++ b/.env.production @@ -8,3 +8,6 @@ ENV = 'production' # VUE_APP_BASE_API = 'http://192.168.0.105:9033' VUE_APP_BASE_API = 'http://39.101.188.84:9033' + +# 路由懒加载 +VUE_CLI_BABEL_TRANSPILE_MODULES = true \ No newline at end of file diff --git a/vue.config.js b/vue.config.js index 6e66aa1..cf32605 100644 --- a/vue.config.js +++ b/vue.config.js @@ -49,8 +49,8 @@ module.exports = { // }, // }, '/api': { - // target: `http://39.101.188.84:9033`, - target: `http://192.168.0.108:9033`, + target: `http://39.101.188.84:9033`, + // target: `http://192.168.0.108:9033`, changeOrigin: true, pathRewrite: { '^/api': ''