This commit is contained in:
熊潇 2025-03-23 12:24:08 +08:00
parent d56c4c15f2
commit 6e410eb3b0

View File

@ -33,10 +33,7 @@ query.beforeRequest = async (config) => {
return config; return config;
}; };
query.afterResponse = async (response, ctx) => { query.afterResponse = async (response, ctx) => {
if (response.code === 401) { return await queryLogin.run401Action(response, ctx);
console.log('401 after', response);
}
return response as any;
}; };
export const queryLogin = new QueryLoginNode({ export const queryLogin = new QueryLoginNode({
query: query as any, query: query as any,