|
@@ -22,18 +22,21 @@ app.config(['$authProvider', '$httpProvider', '$stateProvider', '$urlRouterProvi
|
22
|
22
|
$injector.invoke([
|
23
|
23
|
'$http','$state',
|
24
|
24
|
function ($http,$state) {
|
25
|
|
- if(resp.status == 302){
|
26
|
|
- $state.go('login.signin');
|
27
|
|
- }
|
|
25
|
+ // if(resp.status == 302){
|
|
26
|
+ // $state.go('login.signin');
|
|
27
|
+ // }
|
28
|
28
|
}
|
29
|
29
|
]);
|
30
|
30
|
return resp;
|
31
|
31
|
},
|
32
|
32
|
responseError: function (resp) {
|
33
|
33
|
$injector.invoke([
|
34
|
|
- '$http',
|
35
|
|
- function ($http) {
|
36
|
|
- // console.log(resp);
|
|
34
|
+ '$http','$state',
|
|
35
|
+ function ($http,$state) {
|
|
36
|
+ if(resp.status == 444){
|
|
37
|
+ // $state.go('login.signin');
|
|
38
|
+ window.location.href = '/';
|
|
39
|
+ }
|
37
|
40
|
}
|
38
|
41
|
]);
|
39
|
42
|
return $injector.get('$q').reject(resp);
|
|
@@ -194,7 +197,7 @@ app.config(['$authProvider', '$httpProvider', '$stateProvider', '$urlRouterProvi
|
194
|
197
|
// $httpProvider.defaults.headers.get['Pragma'] = 'no-cache';
|
195
|
198
|
// For any unmatched url, redirect to /app/dashboard
|
196
|
199
|
// $urlRouterProvider.otherwise("/app/knowledge/forum");
|
197
|
|
- $urlRouterProvider.otherwise("/login/signin");
|
|
200
|
+ // $urlRouterProvider.otherwise("/login/signin");
|
198
|
201
|
//
|
199
|
202
|
// Set up the states
|
200
|
203
|
$stateProvider.state('app', {
|