feat: 更新版本至 0.0.52,升级依赖 @kevisual/query 至 0.0.47 和 @kevisual/router 至 0.0.75,移除不必要的 setBaseResponse 调用
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user