feat(support): 添加分类筛选的功能
All checks were successful
deploy to server / build-and-deploy (push) Successful in 2m49s

- 为常见问题&文档资料页面添加分类筛选功能
- 调整markdown中的表格渲染样式
This commit is contained in:
2025-09-29 16:09:48 +08:00
parent bbb0d71619
commit 56dd57e244
5 changed files with 280 additions and 13 deletions

View File

@ -2,10 +2,10 @@
<div class="question-list">
<el-collapse class="question-collapse" accordion>
<el-collapse-item
v-for="(question, index) in questions"
:key="index"
v-for="question in questions"
:key="question.documentId"
:title="question.title"
:name="String(index)"
:name="question.documentId"
>
<markdown-renderer :content="question.content || ''" />
</el-collapse-item>
@ -16,7 +16,11 @@
<script setup lang="ts">
defineProps({
questions: {
type: Array as () => Array<{ title: string; content: string }>,
type: Array as () => Array<{
title: string;
content: string;
documentId: string;
}>,
default: () => [],
},
});