|
@@ -92,7 +92,7 @@ const getUrlArgObjectNew = function(name,srcUrl) {
|
|
|
}
|
|
|
|
|
|
const post = function (url, data) {
|
|
|
- const token = getCookie('accessToken')
|
|
|
+ const token = getCookie('accessToken') || localStorage.getItem('accessToken')
|
|
|
if(!token&&window.location.href.indexOf('login')==-1){
|
|
|
window.location.href = "../login.html"
|
|
|
}
|