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; },