From 9fc1f29c8923960338f28ce548ec00e95326bfc0 Mon Sep 17 00:00:00 2001 From: xion Date: Tue, 3 Jun 2025 17:49:16 +0800 Subject: [PATCH] remove: global --- packages/kevisual-official | 2 +- src/modules/query.ts | 11 ----------- submodules/query-mark | 2 +- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/packages/kevisual-official b/packages/kevisual-official index 92401ce..59edfd8 160000 --- a/packages/kevisual-official +++ b/packages/kevisual-official @@ -1 +1 @@ -Subproject commit 92401ced5206fe65837373c68e5182b444a64dca +Subproject commit 59edfd81058dec6179ff4913c3fcba556fef6ebc diff --git a/src/modules/query.ts b/src/modules/query.ts index a4dd823..cf33478 100644 --- a/src/modules/query.ts +++ b/src/modules/query.ts @@ -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; diff --git a/submodules/query-mark b/submodules/query-mark index 757be9f..f12e689 160000 --- a/submodules/query-mark +++ b/submodules/query-mark @@ -1 +1 @@ -Subproject commit 757be9fc2fbfa2ac0af92a3002cccc9edba995ba +Subproject commit f12e6896a9a06a4fd4961d38c18217daea76fa82