From 1e19af47b4d3adc19781180921fdddd4f85c6cd2 Mon Sep 17 00:00:00 2001 From: chenghongxing <1126263215@qq.com> Date: Fri, 11 Dec 2020 16:16:56 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E9=A1=B5=E7=AD=BE=E5=A4=B4=E6=A0=87=E9=A2=98=E4=B8=8D?= =?UTF-8?q?=E7=94=9F=E6=95=88=E7=9A=84bug=EF=BC=9B:star:=20fix:=20the=20pr?= =?UTF-8?q?oblem=20that=20modify=20page=20title=20not=20effective;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/tabs/TabsHead.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/layouts/tabs/TabsHead.vue b/src/layouts/tabs/TabsHead.vue index 86f08ce..a660728 100644 --- a/src/layouts/tabs/TabsHead.vue +++ b/src/layouts/tabs/TabsHead.vue @@ -95,7 +95,8 @@ this.$emit('contextmenu', pageKey, e) }, pageName(page) { - const custom = this.customTitles.find(item => item.path === page.fullPath) + const pagePath = page.fullPath.split('?')[0] + const custom = this.customTitles.find(item => item.path === pagePath) return (custom && custom.title) || page.title || this.$t(getI18nKey(page.keyPath)) } } From d0d7ff53af775e8c73989a2d1a59476eecc30619 Mon Sep 17 00:00:00 2001 From: chenghongxing <1126263215@qq.com> Date: Sun, 13 Dec 2020 11:27:54 +0800 Subject: [PATCH 2/2] chore: update configuration of environment; --- .env | 3 ++- .gitignore | 1 + vue.config.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 5e49336..7754615 100644 --- a/.env +++ b/.env @@ -1,3 +1,4 @@ +VUE_APP_PUBLIC_PATH=/ VUE_APP_NAME=Admin VUE_APP_ROUTES_KEY=admin.routes VUE_APP_PERMISSIONS_KEY=admin.permissions @@ -6,4 +7,4 @@ VUE_APP_USER_KEY=admin.user VUE_APP_SETTING_KEY=admin.setting VUE_APP_TBAS_KEY=admin.tabs VUE_APP_TBAS_TITLES_KEY=admin.tabs.titles -VUE_APP_API_BASE_URL=http://api.iczer.com +VUE_APP_API_BASE_URL=http://api.iczer.com \ No newline at end of file diff --git a/.gitignore b/.gitignore index 7595136..5542012 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ selenium-debug.log *.njsproj *.sln package-lock.json +.env.production.local diff --git a/vue.config.js b/vue.config.js index ba70c7d..f77ee5d 100644 --- a/vue.config.js +++ b/vue.config.js @@ -110,7 +110,7 @@ module.exports = { } } }, - publicPath: isProd ? '/vue-antd-admin/' : '/', + publicPath: process.env.VUE_APP_PUBLIC_PATH, outputDir: 'dist', assetsDir: 'static', productionSourceMap: false