fix: update query-login getme if has token not check401
This commit is contained in:
parent
f1024941ed
commit
f8af24506b
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@kevisual/query-login",
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.3",
|
||||
"description": "",
|
||||
"main": "dist/query-login.js",
|
||||
"types": "dist/query-login.d.ts",
|
||||
|
@ -266,7 +266,7 @@ export class QueryLogin {
|
||||
return config;
|
||||
},
|
||||
afterResponse: async (response, ctx) => {
|
||||
if (response?.code === 401 && check401) {
|
||||
if (response?.code === 401 && check401 && !token) {
|
||||
return await that.afterCheck401ToRefreshToken(response, ctx);
|
||||
}
|
||||
return response as any;
|
||||
|
Loading…
x
Reference in New Issue
Block a user