Explorar o código

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

dongbw %!s(int64=8) %!d(string=hai) anos
pai
achega
3679c88a00
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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();