mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
This commit is contained in:
parent
ba4e5e8eed
commit
7c7f3db0b8
1 changed files with 4 additions and 1 deletions
|
|
@ -42,7 +42,10 @@ export const fetchPost = (url: string, data?: any, cb?: (response: IWebSocketDat
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}).then((response: IWebSocketData) => {
|
}).then((response: IWebSocketData) => {
|
||||||
if (!response) {
|
if (typeof response === "string") {
|
||||||
|
if (cb) {
|
||||||
|
cb(response);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (["/api/search/searchRefBlock", "/api/graph/getGraph", "/api/graph/getLocalGraph"].includes(url)) {
|
if (["/api/search/searchRefBlock", "/api/graph/getGraph", "/api/graph/getLocalGraph"].includes(url)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue