parent
c3818ff064
commit
d19b441540
@ -528,7 +528,7 @@ const request = (function(_global) {
|
|||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
[401, 403].includes(status) &&
|
[401, 403].includes(status) &&
|
||||||
['unknown user!', 'token invalid', 'token expired!'].includes(responseJSON.message)
|
['unknown user!', 'token invalid!', 'token expired!'].includes(responseJSON.message)
|
||||||
) {
|
) {
|
||||||
goLogin();
|
goLogin();
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ const request = () => {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
[401, 403].includes(status) &&
|
[401, 403].includes(status) &&
|
||||||
['unknown user!', 'token invalid', 'token expired!'].includes(message)
|
['unknown user!', 'token invalid!', 'token expired!'].includes(message)
|
||||||
) {
|
) {
|
||||||
goLogin();
|
goLogin();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user