增加没有分配菜单的拦截功能

This commit is contained in:
2026-07-15 09:07:12 +08:00
parent 4edaca03cf
commit bafe23a43c
3 changed files with 26 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ const permission = {
addRoutes: [],
sidebarRouters: [], // 左侧边菜单的路由,被 Sidebar/index.vue 使用
topbarRouters: [], // 顶部菜单的路由,被 TopNav/index.vue 使用
defaultPath: '/', // 登录后默认跳转路径(由菜单 jumpFlag===1 决定)
defaultPath: '/'
},
mutations: {
SET_DEFAULT_PATH: (state, path) => {