remove: global
This commit is contained in:
Submodule packages/kevisual-official updated: 92401ced52...59edfd8105
@@ -11,16 +11,6 @@ export const query = new QueryClient({
|
||||
export const queryLogin = new QueryLoginBrowser({
|
||||
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) => {
|
||||
const newRes = await queryLogin.run401Action(res, ctx, {
|
||||
afterAlso401: () => {
|
||||
@@ -36,7 +26,6 @@ query.afterResponse = async (res, ctx) => {
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
return newRes as any;
|
||||
};
|
||||
export const request = query.post;
|
||||
|
||||
Submodule submodules/query-mark updated: 757be9fc2f...f12e6896a9
Reference in New Issue
Block a user