remove: global

This commit is contained in:
熊潇 2025-06-03 17:49:16 +08:00
parent 76bacdb830
commit 9fc1f29c89
3 changed files with 2 additions and 13 deletions

@ -1 +1 @@
Subproject commit 92401ced5206fe65837373c68e5182b444a64dca
Subproject commit 59edfd81058dec6179ff4913c3fcba556fef6ebc

View File

@ -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;

@ -1 +1 @@
Subproject commit 757be9fc2fbfa2ac0af92a3002cccc9edba995ba
Subproject commit f12e6896a9a06a4fd4961d38c18217daea76fa82