From 621b0d7d13d2a530e638137ba674a0c563ac6882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=B6=E7=A6=8F?= <> Date: Fri, 22 Aug 2025 14:52:35 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E9=85=8D=E7=BD=AE=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 2 +- vue.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.production b/.env.production index 1d5c46e..8ed42d3 100644 --- a/.env.production +++ b/.env.production @@ -18,4 +18,4 @@ VUE_APP_ALL_MENU = false # VUE_APP_EXPOSES_URL="http://192.168.1.20:8090" VUE_APP_REMOTES_URL="" # 当前应用部署地址 -VUE_APP_EXPOSES_URL="/prevention/" \ No newline at end of file +VUE_APP_EXPOSES_URL="http://192.168.1.121/prevention/" \ No newline at end of file diff --git a/vue.config.js b/vue.config.js index c0a1d43..8c62e89 100644 --- a/vue.config.js +++ b/vue.config.js @@ -7,7 +7,7 @@ const resolve = (dir) => { return path.join(__dirname, dir); }; module.exports = defineConfig({ - publicPath: "./", + publicPath: process.env.VUE_APP_EXPOSES_URL, productionSourceMap: process.env.NODE_ENV !== "production", transpileDependencies: true, lintOnSave: true, // 在保存时校验格式