mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-21 05:14:45 +08:00
chore: merge with web UI project
This commit is contained in:
3
web/src/core/utils/deep-clone.ts
Normal file
3
web/src/core/utils/deep-clone.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export function deepClone<T>(value: T): T {
|
||||
return JSON.parse(JSON.stringify(value));
|
||||
}
|
||||
1
web/src/core/utils/index.ts
Normal file
1
web/src/core/utils/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./time";
|
||||
3
web/src/core/utils/time.ts
Normal file
3
web/src/core/utils/time.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export function sleep(ms: number) {
|
||||
return new Promise((resolve) => setTimeout(resolve, ms));
|
||||
}
|
||||
Reference in New Issue
Block a user