From 4995992abc80cb0bc61b39fba9c8cf4c7a0e6a81 Mon Sep 17 00:00:00 2001 From: zaodonganqi <131591012+zaodonganqi@users.noreply.github.com> Date: Wed, 14 May 2025 18:08:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=AC=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E6=98=BE=E7=A4=BA=E9=80=BB=E8=BE=91=20(#11)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add files via upload * 修改图标显示 --- src/App.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index 8b63ed2..c208575 100644 --- a/src/App.vue +++ b/src/App.vue @@ -591,8 +591,8 @@ const getCategoryTree = (category) => { selectable: true }; - // 添加图标(原本地无法显示图标) - if (!isRoot) { + // 添加图标(仅网页端显示图标,逻辑有需要再修改) + if (mode !== 'single') { treeNode.icon = () => h('img', { src: getIconUrl(node.name), style: { @@ -607,7 +607,6 @@ const getCategoryTree = (category) => { return treeNode; }; - return [buildTree(category, true)].filter(Boolean); };