🚀 update to v0.3.2

This commit is contained in:
frostime 2024-01-13 21:40:22 +08:00
parent 74d62ac1aa
commit 1735ec4bce
6 changed files with 79 additions and 8 deletions

View file

@ -9,7 +9,7 @@
import { fetchSyncPost, IWebSocketData } from "siyuan";
async function request(url: string, data: any) {
export async function request(url: string, data: any) {
let response: IWebSocketData = await fetchSyncPost(url, data);
let res = response.code === 0 ? response.data : null;
return res;