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) => {
|
||||
if (!response) {
|
||||
if (typeof response === "string") {
|
||||
if (cb) {
|
||||
cb(response);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (["/api/search/searchRefBlock", "/api/graph/getGraph", "/api/graph/getLocalGraph"].includes(url)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue