mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-22 00:06:09 +01:00
This commit is contained in:
parent
6657343f3e
commit
9fdfa27682
2 changed files with 11 additions and 3 deletions
|
|
@ -93,6 +93,14 @@ export const fetchPost = (
|
|||
cb(response);
|
||||
}
|
||||
}).catch((e) => {
|
||||
if (failCallback && url === "/api/file/getFile") {
|
||||
failCallback({
|
||||
data: null,
|
||||
msg: e.message,
|
||||
code: 400,
|
||||
});
|
||||
return;
|
||||
}
|
||||
console.warn("fetch post failed [" + e + "], url [" + url + "]");
|
||||
if (url === "/api/transactions" && (e.message === "Failed to fetch" || e.message === "Unexpected end of JSON input")) {
|
||||
kernelError();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue