调整路由

This commit is contained in:
zyy 2019-11-14 17:10:04 +08:00
parent 63d89a71b1
commit 8ff33b479a

View File

@ -31,7 +31,7 @@ function hasPermission(roles, route, parentsRoles) {
if (getSessionStorage('project').startsWith('design')) {
const result = roles.filter(role => route.meta.roles.indexOf(role) >= 0) || [];
return result.length && route.meta.roles.indexOf(userDesign) >= 0;
return result.length && route.meta.roles.indexOf(userTrainingPlatform) < 0;
} else {
roles = roles.filter(function (role) {
return route.meta.roles.indexOf(role) >= 0;