From dc1e8567703238ff33aa586c875038779654d12b Mon Sep 17 00:00:00 2001 From: thu_renyi <630362055@qq.com> Date: Sun, 14 Aug 2022 07:03:56 +0000 Subject: [PATCH] =?UTF-8?q?update=20web/src/layout/header-aside/layout.vue?= =?UTF-8?q?.=20=E5=B8=A6=E5=8F=82=E6=95=B0=E7=9A=84=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E9=87=8C=E7=9A=84fullpath=E5=BA=94=E8=AF=A5?= =?UTF-8?q?=E6=94=B9=E4=B8=BAfullPath=EF=BC=8C=E5=90=A6=E5=88=99=E4=B8=8D?= =?UTF-8?q?=E8=B5=B7=E4=BD=9C=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: thu_renyi <630362055@qq.com> --- web/src/layout/header-aside/layout.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/layout/header-aside/layout.vue b/web/src/layout/header-aside/layout.vue index 68e114f..c224929 100644 --- a/web/src/layout/header-aside/layout.vue +++ b/web/src/layout/header-aside/layout.vue @@ -160,8 +160,8 @@ export default { routerViewKey () { // 默认情况下 key 类似 __transition-n-/foo // 这里的字符串操作是为了最终 key 的格式和原来相同 类似 __transition-n-__stamp-time-/foo - const stamp = this.$route.meta[`__stamp-${this.$route.fullpath}`] || '' - return `${stamp ? `__stamp-${stamp}-` : ''}${this.$route.fullpath}` + const stamp = this.$route.meta[`__stamp-${this.$route.fullPath}`] || '' + return `${stamp ? `__stamp-${stamp}-` : ''}${this.$route.fullPath}` }, /** * @description 最外层容器的背景图片样式