zhangying 4 дней назад
Родитель
Сommit
0a899c785b

+ 1 - 1
src/main/resources/static/app/main/bigdata/kbxy/dwdt.js

@@ -1,7 +1,7 @@
 (function ($app) {
     'use strict';
     $app.module('gtPartyApp').controller('showKBDjdsj_dwdtCtrl', function ($scope, $state, $alert, AuthUser, flowaudit, $http, $ocLazyLoad, $loading, $timeout) {
-        if (!AuthUser?.getUser()?.Id || AuthUser.getUser().Id == "null") {
+        if (!AuthUser || !AuthUser.getUser().Id || AuthUser.getUser().Id == null || AuthUser.getUser().Id == "null") {
             window.location.href = "/app/main/index.html#!/loginkb";
             return false;
         }

+ 1 - 1
src/main/resources/static/app/main/bigdata/kbxy/home.js

@@ -1,7 +1,7 @@
 (function ($app) {
     'use strict';
     $app.module('gtPartyApp').controller('showKBDjdsjCtrl', function ($scope, $state, $alert, AuthUser, flowaudit, $http, $ocLazyLoad, $loading, $filter) {
-        if (!AuthUser?.getUser()?.Id || AuthUser.getUser().Id == "null") {
+        if (!AuthUser || !AuthUser.getUser().Id || AuthUser.getUser().Id == null || AuthUser.getUser().Id == "null") {
             window.location.href = "/app/main/index.html#!/loginkb";
             return false;
         }