From 74ad066b13429169b3990a507a978a9d4e3fc0cf Mon Sep 17 00:00:00 2001
From: zhangchen <1652267879@qq.com>
Date: 星期三, 17 九月 2025 22:27:04 +0800
Subject: [PATCH] Merge branch 'ID2093-添加当前时间' into test
---
src/utils/utils.ts | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/utils/utils.ts b/src/utils/utils.ts
index d419c94..76d82bc 100644
--- a/src/utils/utils.ts
+++ b/src/utils/utils.ts
@@ -69,4 +69,12 @@
chars[1] = masked
return chars.join('')
+}
+
+/**
+ * 延时函数
+ * @param {number} ms - 延时时间,单位毫秒
+ */
+export function delay(ms: number) {
+ return new Promise((resolve) => setTimeout(resolve, ms));
}
\ No newline at end of file
--
Gitblit v1.8.0