feat: 更新版本至 0.0.52,升级依赖 @kevisual/query 至 0.0.47 和 @kevisual/router 至 0.0.75,移除不必要的 setBaseResponse 调用

This commit is contained in:
2026-02-18 08:41:56 +08:00
parent 90a73bc1f6
commit fda55061a0
4 changed files with 15 additions and 25 deletions

View File

@@ -47,7 +47,7 @@ export const initApi = async (opts: {
metadata: metadata,
}).define(async (ctx) => {
const msg = { ...ctx.query };
if (msg.token === undefined && token !== undefined) {
if (msg.token === undefined && token !== undefined && !_isBrowser) {
msg.token = token;
}
const res = await query.post<any>({ path: r.path, key: r.key, ...msg });