seimin 2 lat temu
rodzic
commit
2fe9452b23
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      assets/js/config.router.js

+ 3 - 1
assets/js/config.router.js

@@ -35,7 +35,9 @@ app.config(['$authProvider', '$httpProvider', '$stateProvider', '$urlRouterProvi
35
                             function ($http,$state) {
35
                             function ($http,$state) {
36
                                 if(resp.status == 444){
36
                                 if(resp.status == 444){
37
                                     // $state.go('login.signin');
37
                                     // $state.go('login.signin');
38
-                                    window.location.href = 'http://localhost:8080';
38
+                                    if(window.location.hash !== '#/app/dashboard'){
39
+                                        window.location.href = 'http://localhost:8080';
40
+                                    }
39
                                 }
41
                                 }
40
                             }
42
                             }
41
                         ]);
43
                         ]);