From 1aba27590f86a1e90a1207d4a04354cfc98f0afe Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Fri, 12 May 2023 13:01:59 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=A7=84=E8=8C=83`template`=E6=A8=A1?= =?UTF-8?q?=E7=89=88=E4=B8=AD=E8=B7=AF=E7=94=B1=E5=86=99=E6=B3=95=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E4=BD=BF=E7=94=A8`$route`=E5=92=8C`$router`?= =?UTF-8?q?=EF=BC=8C=E6=AD=A4=E5=86=99=E6=B3=95`vue-tsc`=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E4=B8=8D=E9=80=9A=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/tag/index.vue | 2 +- src/views/components/dialog/index.vue | 5 ++++- src/views/empty/index.vue | 5 ++++- src/views/error/403.vue | 5 ++++- src/views/error/404.vue | 5 ++++- src/views/error/500.vue | 5 ++++- src/views/tabs/index.vue | 12 ++++++------ 7 files changed, 27 insertions(+), 12 deletions(-) diff --git a/src/layout/components/tag/index.vue b/src/layout/components/tag/index.vue index 704adc6ce..556ffed69 100644 --- a/src/layout/components/tag/index.vue +++ b/src/layout/components/tag/index.vue @@ -525,7 +525,7 @@ onMounted(() => { :class="[ 'scroll-item is-closable', linkIsActive(item), - $route.path === item.path && showModel === 'card' + route.path === item.path && showModel === 'card' ? 'card-active' : '' ]" diff --git a/src/views/components/dialog/index.vue b/src/views/components/dialog/index.vue index 11a8bed06..bc3af4d05 100644 --- a/src/views/components/dialog/index.vue +++ b/src/views/components/dialog/index.vue @@ -1,4 +1,5 @@