From 4fbb104b7ecee866deaaf3a65ba465e919b88fe3 Mon Sep 17 00:00:00 2001 From: "eason.qian" Date: Fri, 6 Apr 2018 08:43:28 +0800 Subject: [PATCH] fix --- src/main/ui/static/boot/indexMainApp.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/ui/static/boot/indexMainApp.js b/src/main/ui/static/boot/indexMainApp.js index 6cb90b5d0..3edbbe8bf 100644 --- a/src/main/ui/static/boot/indexMainApp.js +++ b/src/main/ui/static/boot/indexMainApp.js @@ -42,6 +42,9 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo }) } connectWebSocket(); + if ($scope.currentUser.role == 1 || $scope.currentUser.role == 2) { + $scope.getAgStatus(); + } }, function (resp) { if (resp.status == 403) { location.href = 'login.html?f=' + encodeURIComponent(location.href); @@ -131,9 +134,7 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo }); }; - // if ($scope.currentUser.role == 1 || $scope.currentUser.role == 2) { - // $scope.getAgStatus(); - // } + $scope.refundNotice = {counts: 0}; $scope.openRefundNotice = false; $scope.showRefundNotice = function () {