fix: 修复知识库树形目录图标渲染为 [object Object]

This commit is contained in:
2026-08-04 17:05:57 +08:00
parent 35b7decd49
commit 01b8c05984
+1 -9
View File
@@ -1,5 +1,5 @@
<script setup> <script setup>
import { computed, onMounted, reactive, ref } from 'vue' import { computed, h, onMounted, reactive, ref } from 'vue'
import { message, Modal } from 'ant-design-vue' import { message, Modal } from 'ant-design-vue'
import { import {
FolderOutlined, FolderOutlined,
@@ -108,14 +108,6 @@ function makeCategoryNode(cat, docs) {
} }
} }
function h(type) {
return { render: () => _h(type) }
}
function _h(type) {
return type
}
const treeDataComputed = computed(() => buildTree()) const treeDataComputed = computed(() => buildTree())
function handleTreeSelect(keys, info) { function handleTreeSelect(keys, info) {