From 7e7140dd01fc6d5204e030edf773857897bf03b1 Mon Sep 17 00:00:00 2001 From: jacky Date: Sun, 11 Aug 2024 16:19:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9dashboard=E9=99=A2=E5=A3=AB?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=9A=84=E5=85=A5=E5=8F=A3=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/view/dashboard/home.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/view/dashboard/home.vue b/src/view/dashboard/home.vue index 994d1e4..5d3c68b 100644 --- a/src/view/dashboard/home.vue +++ b/src/view/dashboard/home.vue @@ -13,7 +13,7 @@
快捷入口
+ @click="toTarget(card.name, card.params)">
@@ -59,6 +59,7 @@ const toolCards = ref([ label: '院士管理', icon: 'star', name: 'academician', + params: { kind: 1 }, color: '#ffd666', bg: 'rgba(255, 214, 102,.3)' }, @@ -87,8 +88,9 @@ const toolCards = ref([ const router = useRouter() -const toTarget = (name) => { - router.push({ name }) +const toTarget = (name, params) => { + if (name) + router.push({ name, params }) }