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, // 在保存时校验格式