fix:ts syntax error

This commit is contained in:
黄云飞
2022-04-02 17:40:58 +08:00
parent 2420a035bd
commit dc7b1c5cbf
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export function deepClone<T>(obj: T): T {
if (Array.isArray(obj)) {
newObj = obj.map(item => deepClone(item))
} else {
Object.keys(obj).forEach((key) => {
Object.keys(obj as any).forEach((key) => {
// @ts-ignore
return newObj[key] = deepClone(obj[key])
})