🚧 批量上传.

This commit is contained in:
lijiahangmax
2024-05-09 00:06:08 +08:00
parent 42f1c6f0cb
commit af00e71651
36 changed files with 333 additions and 94 deletions

View File

@@ -197,23 +197,6 @@ export const objectTruthKeyCount = (obj: any, ignore: string[] = []) => {
}, 0);
};
/**
* 创建 websocket
*/
export const createWebSocket = async (url: string) => {
return new Promise<WebSocket>((resolve, reject) => {
const socket = new WebSocket(url);
socket.onopen = () => {
resolve(socket);
};
socket.onerror = e => {
reject(e);
};
});
};
/**
* 休眠
*/