accept drop from explore file or node

This commit is contained in:
codetypes committed 2024-04-19 22:24:17 +08:00
1 parent 0ff92fe429
commit f8d04581d1
4 files changed
+45 -3

No files matched your search

+2
View File
@@ -310,6 +310,8 @@ export const createTreeData = (node: NodeModel, parent?: string) => {
treeData.lastModified = fs.statSync(subtreePath).mtimeMs;
treeData.path = node.path;
treeData.debug = node.debug;
treeData.parent = parent;
treeData.id = node.id.toFixed();
treeData.size = calcTreeDataSize(treeData);
} catch (error) {
message.error(`解析子树失败:${node.path}`);