公告板
版本库
filestore
活动
搜索
登录
web
/
smart_community
重庆项目
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
fix: 增加组件功能
zhangxiao
2024-08-21
523e69a7f649b513aa8d3788c79d52fc26c894d2
[web/smart_community.git]
/
src
/
utils
/
tools
/
sleep
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
/**
* 睡眠
* @param duration 睡眠时间,毫秒
* @returns
*/
export default function (duration: number): Promise<boolean> {
return new Promise((resolve) => {
setTimeout(() => {
resolve(true);
}, duration);
});
}