Browse Source

fix(frontend): 移除分类管理列表中的文档数量显示

Spring-AI-1.1.2
wanghanlin 3 weeks ago
parent
commit
5856237746
  1. 2
      frontend/src/views/CategoryManager.vue

2
frontend/src/views/CategoryManager.vue

@ -26,7 +26,6 @@
<span v-else style="width:16px;" /> <span v-else style="width:16px;" />
<strong class="tree-name">{{ node.name }}</strong> <strong class="tree-name">{{ node.name }}</strong>
<span v-if="node.description" class="tree-desc">{{ node.description }}</span> <span v-if="node.description" class="tree-desc">{{ node.description }}</span>
<span class="tree-doc-count">({{ node.documentCount||0 }} )</span>
</div> </div>
<t-space :size="4"> <t-space :size="4">
<t-button size="small" variant="text" @click="openEdit(node)">编辑</t-button> <t-button size="small" variant="text" @click="openEdit(node)">编辑</t-button>
@ -120,5 +119,4 @@ function countDescendants(node:any):number{if(!node.children?.length)return 0;le
.tree-arrow{cursor:pointer;user-select:none;font-size:12px;width:16px;text-align:center;color:var(--color-text-tertiary);} .tree-arrow{cursor:pointer;user-select:none;font-size:12px;width:16px;text-align:center;color:var(--color-text-tertiary);}
.tree-name{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;} .tree-name{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tree-desc{color:var(--color-text-tertiary);font-size:12px;margin-left:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;} .tree-desc{color:var(--color-text-tertiary);font-size:12px;margin-left:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tree-doc-count{color:var(--color-text-tertiary);font-size:11px;margin-left:8px;white-space:nowrap;}
</style> </style>
Loading…
Cancel
Save