|
@@ -113,7 +113,6 @@ const getFlatMenuList_1children = (menuList: AppRouteRecordRaw[]) => {
|
|
|
// 过滤隐藏
|
|
|
// const getShowMenuList = (menuList: AppRouteRecordRaw[], parentPath = '') => {
|
|
|
const getShowMenuList = (menuList: AppRouteRecordRaw[]) => {
|
|
|
- console.error(menuList, 'menuList')
|
|
|
return menuList.filter(item => {
|
|
|
// console.error(item, 'item')
|
|
|
if (!item.meta.hidden) {
|
|
@@ -186,7 +185,6 @@ const usePermissionStore = defineStore({
|
|
|
data!.menu, // .filter((v: any) => /\/.*/.test(v.path)),
|
|
|
roles
|
|
|
)
|
|
|
- debugger
|
|
|
this.setRoutes(menuList)
|
|
|
return menuList
|
|
|
})
|