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;
};
query.afterResponse = async (response, ctx) => {
if (response.code === 401) {
console.log('401 after', response);
}
return response as any;
return await queryLogin.run401Action(response, ctx);
};
export const queryLogin = new QueryLoginNode({
query: query as any,