From b0fc3a943ed85e51669b1b9eb88bfa7263676ff0 Mon Sep 17 00:00:00 2001 From: chenghongxing <1126263215@qq.com> Date: Fri, 11 Dec 2020 16:16:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E9=A1=B5=E7=AD=BE=E5=A4=B4=E6=A0=87=E9=A2=98=E4=B8=8D=E7=94=9F?= =?UTF-8?q?=E6=95=88=E7=9A=84bug=EF=BC=9B:star:=20fix:=20the=20problem=20t?= =?UTF-8?q?hat=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)) } }