mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat(projects): 添加侧边菜单
This commit is contained in:
@ -17,6 +17,8 @@ interface RouteStore {
|
||||
isAddedDynamicRoute: Ref<boolean>;
|
||||
/** 初始化动态路由 */
|
||||
initDynamicRoute(router: Router): Promise<void>;
|
||||
/** 菜单 */
|
||||
menus: Ref<GlobalMenuOption[]>;
|
||||
}
|
||||
|
||||
export const useRouteStore = defineStore('route-store', () => {
|
||||
@ -50,7 +52,8 @@ export const useRouteStore = defineStore('route-store', () => {
|
||||
routes,
|
||||
setRoutes,
|
||||
isAddedDynamicRoute,
|
||||
initDynamicRoute
|
||||
initDynamicRoute,
|
||||
menus
|
||||
};
|
||||
|
||||
return routeStore;
|
||||
|
Reference in New Issue
Block a user