Fix #3428, Fix token valid go login bug (#3449)

This commit is contained in:
senekis 2020-07-27 09:44:53 +08:00 committed by GitHub
parent c3818ff064
commit d19b441540
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -528,7 +528,7 @@ const request = (function(_global) {
}
if (
[401, 403].includes(status) &&
['unknown user!', 'token invalid', 'token expired!'].includes(responseJSON.message)
['unknown user!', 'token invalid!', 'token expired!'].includes(responseJSON.message)
) {
goLogin();
}

View File

@ -85,7 +85,7 @@ const request = () => {
if (
[401, 403].includes(status) &&
['unknown user!', 'token invalid', 'token expired!'].includes(message)
['unknown user!', 'token invalid!', 'token expired!'].includes(message)
) {
goLogin();
}