From 45a807ac06f8137bc6177642f31f5267621a4baa Mon Sep 17 00:00:00 2001 From: tao Date: Mon, 29 Dec 2025 10:28:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=A8=A1=E6=8B=9F=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/mock.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/utils/mock.ts diff --git a/src/utils/mock.ts b/src/utils/mock.ts new file mode 100644 index 0000000..34cae4c --- /dev/null +++ b/src/utils/mock.ts @@ -0,0 +1,7 @@ +export const delay = (time: number, data?: any) => { + return new Promise((resolve) => { + setTimeout(() => { + resolve(data); + }, time); + }) as any; +};