fixed intercepted error
This commit is contained in:
parent
62ea5c4948
commit
4546f3418d
|
@ -7,7 +7,7 @@ angular.module('users').config(['$httpProvider',
|
||||||
return {
|
return {
|
||||||
responseError: function(response) {
|
responseError: function(response) {
|
||||||
// console.log($location.path());
|
// console.log($location.path());
|
||||||
if( $location.path() !== '/users/me' && response.config){
|
if( $location.path() !== '/users/me' && $location.path() !== '/forms' && response.config){
|
||||||
if(response.config.url !== '/users/me'){
|
if(response.config.url !== '/users/me'){
|
||||||
console.log('intercepted rejection of ', response.config.url, response.status);
|
console.log('intercepted rejection of ', response.config.url, response.status);
|
||||||
if (response.status === 401) {
|
if (response.status === 401) {
|
||||||
|
|
Loading…
Reference in a new issue