From a2b466893e7e448353179cbde25a74ff1bbd3373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=AB=8B=E5=B8=AE?= <3294713004@qq.com> Date: Mon, 1 Sep 2025 00:52:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(core):=20micropython=20`=E6=9D=BF=E5=8D=A1?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=AE=A1=E7=90=86`=20=E5=85=81=E8=AE=B8?= =?UTF-8?q?=E5=B0=86=E6=95=B0=E6=8D=AE=E5=89=AA=E5=88=87=E5=88=B0=E6=A0=B9?= =?UTF-8?q?=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/modules/mixly-modules/common/file-tree.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/common/modules/mixly-modules/common/file-tree.js b/common/modules/mixly-modules/common/file-tree.js index 96b6fb4c..9dfea714 100644 --- a/common/modules/mixly-modules/common/file-tree.js +++ b/common/modules/mixly-modules/common/file-tree.js @@ -345,8 +345,14 @@ class FileTree extends Component { isHtmlName: true, name: Menu.getItem(Msg.Lang['editor.contextMenu.paste'], ''), callback: (_, { $trigger }) => { - let id = $trigger.attr('id'); - this.pasteNode(id); + const type = $trigger.attr('type'); + if (type === 'root') { + this.openRootFolder(); + this.pasteNode('/'); + } else { + const id = $trigger.attr('id'); + this.pasteNode(id); + } } } });