🚀 update to v0.3.2
This commit is contained in:
parent
74d62ac1aa
commit
1735ec4bce
6 changed files with 79 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue