♻️ 当 code 大于 0 时同样需要进行相关的业务处理 https://github.com/siyuan-note/siyuan/pull/11367

This commit is contained in:
Vanessa 2024-06-12 23:11:31 +08:00
parent c07a1a69db
commit 19dd387064
4 changed files with 9 additions and 14 deletions

View file

@ -38,7 +38,7 @@ export const fetchPost = (url: string, data?: any, cb?: (response: IWebSocketDat
return {
data: null,
msg: response.statusText,
code: response.status,
code: -response.status,
};
default:
if (response.headers.get("content-type")?.indexOf("application/json") > -1) {