index.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <v-container>
  3. <v-row>
  4. <v-col cols="2">
  5. <v-sheet rounded="lg">
  6. <v-list color="transparent">
  7. <router-link v-for="item in items" :key="item.text" :to="item.link">
  8. <v-list-item
  9. link
  10. >
  11. <v-list-item-action>
  12. <v-icon>{{ item.icon }}</v-icon>
  13. </v-list-item-action>
  14. <v-list-item-content>
  15. <v-list-item-title>
  16. {{ item.text }}
  17. </v-list-item-title>
  18. </v-list-item-content>
  19. </v-list-item>
  20. </router-link>
  21. <v-divider class="my-2" />
  22. <v-list-item
  23. link
  24. color="grey lighten-4"
  25. >
  26. <v-list-item-content>
  27. <v-list-item-title>
  28. Refresh
  29. </v-list-item-title>
  30. </v-list-item-content>
  31. </v-list-item>
  32. </v-list>
  33. </v-sheet>
  34. </v-col>
  35. <v-col>
  36. <v-sheet
  37. min-height="70vh"
  38. rounded="lg"
  39. >
  40. <router-view />
  41. </v-sheet>
  42. </v-col>
  43. </v-row>
  44. </v-container>
  45. </template>
  46. <script>
  47. export default {
  48. data: () => ({
  49. drawer: true,
  50. items: [
  51. { icon: 'mdi-filmstrip-box-multiple', text: '回复我的', link: '/message' },
  52. { icon: 'mdi-upload', text: '@我的', link: '/message/setting' },
  53. { icon: 'mdi-upload', text: '受到的赞', link: '/message/setting' },
  54. { icon: 'mdi-upload', text: '系统消息', link: '/message/setting' },
  55. { icon: 'mdi-upload', text: '我的消息', link: '/message/setting' },
  56. { icon: 'mdi-upload', text: '私信存档', link: '/message/setting' },
  57. { icon: 'mdi-database', text: '消息设置', link: '/message/setting' }
  58. ]
  59. }),
  60. mounted() {
  61. },
  62. created() {
  63. },
  64. methods: {
  65. }
  66. }
  67. </script>
  68. <style scoped>
  69. a {
  70. text-decoration: none;
  71. }
  72. </style>