update 优化 类型报错问题
This commit is contained in:
@@ -21,13 +21,13 @@ export const usePermissionStore = defineStore('permission', () => {
|
||||
const sidebarRouters = ref<RouteRecordRaw[]>([]);
|
||||
|
||||
const getRoutes = (): RouteRecordRaw[] => {
|
||||
return routes.value;
|
||||
return routes.value as RouteRecordRaw[];
|
||||
};
|
||||
const getSidebarRoutes = (): RouteRecordRaw[] => {
|
||||
return sidebarRouters.value;
|
||||
return sidebarRouters.value as RouteRecordRaw[];
|
||||
};
|
||||
const getTopbarRoutes = (): RouteRecordRaw[] => {
|
||||
return topbarRouters.value;
|
||||
return topbarRouters.value as RouteRecordRaw[];
|
||||
};
|
||||
|
||||
const setRoutes = (newRoutes: RouteRecordRaw[]): void => {
|
||||
|
||||
Reference in New Issue
Block a user