只在非本地模式且非根节点时添加图标

This commit is contained in:
辉鸭蛋
2024-11-14 22:04:43 +08:00
parent ce0a1b085b
commit e07c892b00

View File

@@ -436,8 +436,8 @@ const getCategoryTree = (category) => {
selectable: true
};
// 非根节点添加图标
if (!isRoot) {
// 只在非本地模式且非根节点添加图标
if (!isRoot && mode !== 'single') {
treeNode.icon = () => h('img', {
src: getIconUrl(node.name),
style: {