remove: global
This commit is contained in:
parent
76bacdb830
commit
9fc1f29c89
@ -1 +1 @@
|
|||||||
Subproject commit 92401ced5206fe65837373c68e5182b444a64dca
|
Subproject commit 59edfd81058dec6179ff4913c3fcba556fef6ebc
|
@ -11,16 +11,6 @@ export const query = new QueryClient({
|
|||||||
export const queryLogin = new QueryLoginBrowser({
|
export const queryLogin = new QueryLoginBrowser({
|
||||||
query: query as any,
|
query: query as any,
|
||||||
});
|
});
|
||||||
// @ts-ignore
|
|
||||||
if (window.context) {
|
|
||||||
// @ts-ignore
|
|
||||||
window.context.queryLogin = queryLogin;
|
|
||||||
} else {
|
|
||||||
// @ts-ignore
|
|
||||||
window.context = {
|
|
||||||
queryLogin,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
query.afterResponse = async (res, ctx) => {
|
query.afterResponse = async (res, ctx) => {
|
||||||
const newRes = await queryLogin.run401Action(res, ctx, {
|
const newRes = await queryLogin.run401Action(res, ctx, {
|
||||||
afterAlso401: () => {
|
afterAlso401: () => {
|
||||||
@ -36,7 +26,6 @@ query.afterResponse = async (res, ctx) => {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
return newRes as any;
|
return newRes as any;
|
||||||
};
|
};
|
||||||
export const request = query.post;
|
export const request = query.post;
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 757be9fc2fbfa2ac0af92a3002cccc9edba995ba
|
Subproject commit f12e6896a9a06a4fd4961d38c18217daea76fa82
|
Loading…
x
Reference in New Issue
Block a user