diff --git a/f/web-kboss/src/store/modules/permission.js b/f/web-kboss/src/store/modules/permission.js index 3c133d7..83a02d8 100644 --- a/f/web-kboss/src/store/modules/permission.js +++ b/f/web-kboss/src/store/modules/permission.js @@ -63,7 +63,7 @@ function addUserRoutes(routes, userType, orgType, userRoles = []) { const userRoutes = []; // 如果是普通用户(org_type为2或userType为user),添加订单管理和资源管理路由 - if (userType === 'user' || orgType == 2 ||3 ) { + if (userType === 'user' || orgType == 2 || orgType == 3 ) { const orderManagementRoute = routes.find(route => route.path === "/orderManagement"); const resourceManagementRoute = routes.find(route => route.path === "/resourceManagement"); @@ -160,7 +160,7 @@ const actions = { console.log("用户类型:", userType, "orgType:", orgType); - if (params.user && params.user.includes("admin") && orgType != 2) { + if (params.user && params.user.includes("admin") && orgType != 2&3) { // 管理员:只显示超级管理员菜单 accessedRoutes = asyncRoutes.filter(item => item.path === '/superAdministrator'); } else {