feat: 菜单管理

This commit is contained in:
kailong321200875
2023-08-05 17:43:24 +08:00
parent 28d0785be8
commit c72b3a33aa
16 changed files with 681 additions and 33 deletions

5
types/router.d.ts vendored
View File

@@ -27,9 +27,9 @@ import { defineComponent } from 'vue'
activeMenu: '/dashboard' 显示高亮的路由路径
followAuth: '/dashboard' 跟随哪个路由进行权限过滤
canTo: true 设置为true即使hidden为true也依然可以进行路由跳转(默认 false)
permission: ['edit','add', 'delete'] 设置该路由的权限
}
**/
declare module 'vue-router' {
@@ -45,6 +45,7 @@ declare module 'vue-router' {
noTagsView?: boolean
followAuth?: string
canTo?: boolean
permission?: string[]
}
}