fix
This commit is contained in:
parent
d56c4c15f2
commit
6e410eb3b0
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user