|
|
@ -64,6 +64,7 @@ |
|
|
|
Authorization: 'Bearer '+ token, |
|
|
|
Authorization: 'Bearer '+ token, |
|
|
|
}, |
|
|
|
}, |
|
|
|
success: checkToken, |
|
|
|
success: checkToken, |
|
|
|
|
|
|
|
error: tokenError, |
|
|
|
dataType: 'json' |
|
|
|
dataType: 'json' |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
@ -91,7 +92,9 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function tokenError(){ |
|
|
|
|
|
|
|
loginPage(); |
|
|
|
|
|
|
|
} |
|
|
|
function loginPage(){ |
|
|
|
function loginPage(){ |
|
|
|
localStorage.removeItem('token'); |
|
|
|
localStorage.removeItem('token'); |
|
|
|
var loginTag = '<div class="login">' |
|
|
|
var loginTag = '<div class="login">' |
|
|
|