Ver Fonte

开放管理平台进入用户账户编辑角色和客户分配入口

dongbw há 8 anos atrás
pai
commit
3679c88a00
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      src/main/webapp/resources/js/index/app.js

+ 2 - 2
src/main/webapp/resources/js/index/app.js

@@ -10635,10 +10635,10 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 
         var getMangagerInfo = function() {
             CurrentRole.isManager({}, function(data) {
-               $scope.isManager = data.isManager;
+               $scope.isManager = data.isManager || $scope.user.sys;
             });
             CurrentRole.roles({}, function(data) {
-               $scope.roles = data.count;
+               $scope.roles = data.count || $scope.user.sys;
             });
         };
         getMangagerInfo();