修改本地图标显示逻辑 (#11)

* Add files via upload

* 修改图标显示
This commit is contained in:
zaodonganqi
2025-05-14 18:08:31 +08:00
committed by GitHub
parent 7b036fe817
commit 4995992abc

View File

@@ -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);
};