增加模拟请求工具

This commit is contained in:
tao
2025-12-29 10:28:28 +08:00
parent 40c5141385
commit 45a807ac06

7
src/utils/mock.ts Normal file
View File

@@ -0,0 +1,7 @@
export const delay = (time: number, data?: any) => {
return new Promise((resolve) => {
setTimeout(() => {
resolve(data);
}, time);
}) as any;
};