|
@@ -7,7 +7,7 @@ const request = (opts, hasToken) => {
|
|
const header = {
|
|
const header = {
|
|
'Content-Type': 'application/json;charset=UTF-8'
|
|
'Content-Type': 'application/json;charset=UTF-8'
|
|
}
|
|
}
|
|
- if(!hasToken&&opts.url=='checkToken'){
|
|
|
|
|
|
+ if(!hasToken&&(opts.url=='checkToken'||opts.url=='logout')){
|
|
header['X-AUTH-TOKEN'] = authorization
|
|
header['X-AUTH-TOKEN'] = authorization
|
|
}
|
|
}
|
|
//此token是登录成功后后台返回保存在storage中的
|
|
//此token是登录成功后后台返回保存在storage中的
|