From e07c892b000255b3ae4c1ba3a57b301a783eb7db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89=E9=B8=AD=E8=9B=8B?= Date: Thu, 14 Nov 2024 22:04:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AA=E5=9C=A8=E9=9D=9E=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E4=B8=94=E9=9D=9E=E6=A0=B9=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E6=97=B6=E6=B7=BB=E5=8A=A0=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index 310272f..efb5bfb 100644 --- a/src/App.vue +++ b/src/App.vue @@ -436,8 +436,8 @@ const getCategoryTree = (category) => { selectable: true }; - // 为非根节点添加图标 - if (!isRoot) { + // 只在非本地模式且非根节点时添加图标 + if (!isRoot && mode !== 'single') { treeNode.icon = () => h('img', { src: getIconUrl(node.name), style: {