This commit is contained in:
hrx 2025-11-19 16:57:56 +08:00
parent 07390bf6c7
commit efbbf63d7e

View File

@ -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 {