mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-06 04:40:15 +01:00
♻️ 当 code 大于 0 时同样需要进行相关的业务处理 https://github.com/siyuan-note/siyuan/pull/11367
This commit is contained in:
parent
c07a1a69db
commit
19dd387064
4 changed files with 9 additions and 14 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue