feat: 新版webui
This commit is contained in:
1 parent
afc9c7ed8d
commit
31c0c1f4bc
201 files changed
+18454
-3422
No files matched your search
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* 深拷贝
|
||||
* @param obj 需要拷贝的对象
|
||||
* @returns 拷贝后的对象
|
||||
*/
|
||||
export const deepClone = <T>(obj: T): T => {
|
||||
// 我们这里只只用于配置项,所以直接使用字符串就行
|
||||
const newObj = JSON.parse(JSON.stringify(obj))
|
||||
|
||||
return newObj
|
||||
}
|
||||
Reference in new issue
Block a user