Skip to content

Commit

Permalink
feat: 评论列表改为显示markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Nov 4, 2024
1 parent ab9cfe9 commit ef28f3a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/admin/src/pages/comment/list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/>
<el-table-column
label="内容"
prop="html"
prop="content"
/>
<el-table-column
label="发布时间"
Expand All @@ -34,6 +34,7 @@
</template>

<script lang="ts">
import {ElButton, ElPagination, ElTable, ElTableColumn} from 'element-plus'
import {defineComponent} from 'vue'
interface IComment {
Expand All @@ -43,6 +44,12 @@ interface IComment {
export default defineComponent({
name: 'FreyjaCommentList',
components: {
ElTable,
ElTableColumn,
ElPagination,
ElButton,
},
data() {
return {
comments: [] as IComment[],
Expand Down

0 comments on commit ef28f3a

Please sign in to comment.