From 28b6aed9a0015b59fde3312306b634fdb2e5889a Mon Sep 17 00:00:00 2001 From: zs <2603452870@qq.com> Date: Wed, 22 Mar 2023 15:02:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=A1=B5=E9=9D=A2tran?= =?UTF-8?q?sition=E5=88=87=E6=8D=A2=E6=97=B6=E5=87=BA=E7=8E=B0X=E8=BD=B4?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E6=9D=A1=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 12 +++++++----- src/store/modules/route.ts | 6 +++--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/App.vue b/src/App.vue index 9310576..d4f3b50 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,11 +1,13 @@ diff --git a/src/store/modules/route.ts b/src/store/modules/route.ts index 362669d..4a1576c 100644 --- a/src/store/modules/route.ts +++ b/src/store/modules/route.ts @@ -21,13 +21,13 @@ export const useRouteStore = defineStore({ }, }, actions: { - setRouters(routers) { + setRouters(routers: RouteRecordRaw[]) { this.routers = routers; }, - setMenus(menus) { + setMenus(menus: RouteRecordRaw[]) { this.menus = menus; }, - setKeepAliveComponents(compNames) { + setKeepAliveComponents(compNames: string[]) { // 设置需要缓存的组件 this.keepAliveComponents = compNames; },