updata
This commit is contained in:
parent
07390bf6c7
commit
efbbf63d7e
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user