fix: update query-login getme if has token not check401

This commit is contained in:
xion 2025-04-03 01:30:30 +08:00
parent f1024941ed
commit f8af24506b
2 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

@ -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;