diff --git a/src/main/ui/static/boot/managerMainAppv2.js b/src/main/ui/static/boot/managerMainAppv2.js index 7d16e7b1f..0b4964770 100644 --- a/src/main/ui/static/boot/managerMainAppv2.js +++ b/src/main/ui/static/boot/managerMainAppv2.js @@ -63,7 +63,8 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo }]); app.controller('managerIndexCtrl', ['$scope', '$rootScope', '$http', '$log', '$timeout', '$interval', '$uibModal', '$filter', 'myLoginLogView', 'commonDialog', function ($scope, $rootScope, $http, $log, $timeout, $interval, $uibModal, $filter, myLoginLogView, commonDialog) { - if (sessionStorage.getItem('roleNum') =='N'){ + $scope.roleNow = getroleNow(); + if (sessionStorage.getItem('roleNum') =='N'){ if (window.location.hash == "" || window.location.hash == "#/home") { $scope.headerDisplay = false; $scope.copyright = false; @@ -85,8 +86,8 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo $scope.headerDisplay = true; $scope.copyright = true; sessionStorage.setItem('role',role); + $scope.roleNow = getroleNow(); }; - $scope.roleNow = getroleNow(); function getroleNow() { var roleNow = "";