This commit is contained in:
Vanessa 2023-05-15 22:26:11 +08:00
parent ba4e5e8eed
commit 7c7f3db0b8

View file

@ -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)) {