From 8ff33b479ad663da8a848eb94fb8307ae8e42695 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Thu, 14 Nov 2019 17:10:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/permission.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js index b1f5b05e6..68f1166d2 100644 --- a/src/store/modules/permission.js +++ b/src/store/modules/permission.js @@ -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;