This commit is contained in:
2023-06-08 21:09:28 +08:00
parent d778ceab61
commit f8947d332a
158 changed files with 17210 additions and 259 deletions

View File

@@ -12,6 +12,7 @@ export default function usePermission() {
route.meta?.roles?.includes(userStore.role)
)
},
// 返回第一个可访问的路径
findFirstPermissionRoute(_routers, role = "admin") {
const cloneRouters = [..._routers]
while (cloneRouters.length) {