From cdc460f29802066dc4da7f018d1e0fc2950b8531 Mon Sep 17 00:00:00 2001 From: iz <2131601562@qq.com> Date: Tue, 17 Sep 2024 16:20:50 +0800 Subject: [PATCH] fix typeerror --- src/utils/fs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/fs.ts b/src/utils/fs.ts index 2f7f33b..96c441f 100644 --- a/src/utils/fs.ts +++ b/src/utils/fs.ts @@ -744,7 +744,7 @@ export namespace FS{ else if(current.child![index].type == 'file') target.child[target.child.findIndex(item => item.name == paths[paths.length - 1])] = current.child![index]; else - merge(current.child![index], target.child.find(item => item.name == paths[paths.length - 1]) as vDir); + merge(current.child![index] as vDir, target.child.find(item => item.name == paths[paths.length - 1]) as vDir); }else{ current.child![index].type == 'file' ? target.child.push(current.child![index])