redplate.vue 533 B

123456789101112131415161718192021
  1. <script setup lang="ts">
  2. import service from '../../plugins/axios'
  3. const data = await (await service.get('/plate/getplatebycount')).data
  4. const tabclick = (row: any) => {
  5. window.location.href = `/platelist/${row.id}`
  6. }
  7. </script>
  8. <template>
  9. <el-table :data="data"
  10. style="width: 100%"
  11. @cell-click="tabclick">
  12. <el-table-column prop="name"
  13. label="板块" />
  14. <el-table-column prop="count"
  15. label="帖子数" />
  16. </el-table>
  17. </template>
  18. <style scoped>
  19. </style>