Browse Source

鉴权调整

MaiXinRong 2 years ago
parent
commit
5174ff8241
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/const/account_permission.js

+ 1 - 1
app/const/account_permission.js

@@ -78,7 +78,7 @@ const PermissionCheck = {
     check: function (permission, key) {
         if (!permission) return false;
         switch (key) {
-            case 'viewPmData': return permission.tender.indexOf('6') >= 0;
+            case 'viewPmData': return permission && permission.tender ? permission.tender.indexOf('6') >= 0 : false;
             default: return false;
         }
     },