|
|
@@ -41,19 +41,20 @@ export const usePermissionStore = defineStore(
|
|
|
)
|
|
|
|
|
|
function filterAsyncRouter(asyncRouterMap, httpSave = true) {
|
|
|
- const blackList = ["/publicDomain", "/caseShare"
|
|
|
+ const blackList = ["/system/dataList", "/progress"]
|
|
|
+ const hideList = ["/publicDomain", "/caseShare"
|
|
|
// "/workflow"
|
|
|
]
|
|
|
|
|
|
let arr = []
|
|
|
asyncRouterMap.filter(route => {
|
|
|
- if (route.path != "/system/dataList") {
|
|
|
+ if (!blackList.includes(route.path)) {
|
|
|
if (route.children != null && route.children && route.children.length && route.children[0].type != 2 && route.parentId == "1762659463383281665") {
|
|
|
let info = {
|
|
|
alwaysShow: true,
|
|
|
children: [],
|
|
|
component: Layout,
|
|
|
- hidden: blackList.includes(route.path),
|
|
|
+ hidden: hideList.includes(route.path),
|
|
|
meta: {
|
|
|
icon: route.icon,
|
|
|
link: "",
|
|
|
@@ -74,7 +75,7 @@ function filterAsyncRouter(asyncRouterMap, httpSave = true) {
|
|
|
alwaysShow: true,
|
|
|
children: [],
|
|
|
component: ParentView,
|
|
|
- hidden: blackList.includes(route.path),
|
|
|
+ hidden: hideList.includes(route.path),
|
|
|
meta: {
|
|
|
icon: route.icon,
|
|
|
link: "",
|
|
|
@@ -96,7 +97,7 @@ function filterAsyncRouter(asyncRouterMap, httpSave = true) {
|
|
|
component: Layout,
|
|
|
redirect: route.path,
|
|
|
alwaysShow: false,
|
|
|
- hidden: blackList.includes(route.path),
|
|
|
+ hidden: hideList.includes(route.path),
|
|
|
meta: {
|
|
|
icon: route.icon,
|
|
|
title: route.name
|
|
|
@@ -106,7 +107,7 @@ function filterAsyncRouter(asyncRouterMap, httpSave = true) {
|
|
|
// alwaysShow: false, //菜单不支持设置
|
|
|
children: [],
|
|
|
component: loadView(route.path),
|
|
|
- hidden: blackList.includes(route.path),
|
|
|
+ hidden: hideList.includes(route.path),
|
|
|
meta: {
|
|
|
icon: route.icon,
|
|
|
link: "",
|
|
|
@@ -137,7 +138,7 @@ function filterAsyncRouter(asyncRouterMap, httpSave = true) {
|
|
|
// alwaysShow: false, //菜单不支持设置
|
|
|
children: [],
|
|
|
component: loadView(route.path),
|
|
|
- hidden: blackList.includes(route.path),
|
|
|
+ hidden: hideList.includes(route.path),
|
|
|
meta: {
|
|
|
icon: route.icon,
|
|
|
link: "",
|