You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.6 KiB

9 months ago
9 months ago
9 months ago
9 months ago
8 months ago
9 months ago
9 months ago
8 months ago
9 months ago
9 months ago
9 months ago
8 months ago
8 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
8 months ago
8 months ago
9 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
  1. import type { RouteRecordRaw } from 'vue-router'
  2. const blogRoute:Array<RouteRecordRaw>=[
  3. {
  4. path: "/",
  5. redirect:"/home",
  6. name: "home",
  7. component: () => import("@/components/blogs/HomePage.vue"),
  8. children:[
  9. {
  10. path:"home",
  11. name:"home",
  12. component:()=>import("@/views/blog/HomePageView.vue")
  13. },
  14. {
  15. path:"blog",
  16. name:"blog",
  17. component:()=>import("@/views/blog/blogcontent/BlogListView.vue")
  18. },
  19. {
  20. path:"blog/:id",
  21. name:"blogdetail",
  22. component:()=>import("@/views/blog/blogcontent/BlogDetailView.vue")
  23. },
  24. {
  25. path:"diary",
  26. name:"diary",
  27. component:()=>import("@/views/blog/diarycontent/DiaryListView.vue")
  28. },
  29. {
  30. path:"diary/:id",
  31. name:"diarydetail",
  32. component:()=>import("@/views/blog/diarycontent/DiaryDetailView.vue")
  33. },
  34. {
  35. path:"chart",
  36. name:"chart",
  37. component:()=>import("@/views/blog/AmountChartView.vue")
  38. },
  39. {
  40. path:"aboutme",
  41. name:"aboutme",
  42. component:()=>import("@/views/blog/AboutMe.vue"),
  43. },
  44. ]
  45. },
  46. {
  47. path:"/ceshi",
  48. name:"ceshi",
  49. component:()=>import("@/components/blogs/ceshi.vue"),
  50. },
  51. {
  52. path:"/qqcode",
  53. name:"qqcode",
  54. component:()=>import("@/components/blogs/QQCode.vue"),
  55. },
  56. {
  57. path:"/wechatcode",
  58. name:"wechatcode",
  59. component:()=>import("@/components/blogs/WechatCode.vue"),
  60. },
  61. ]
  62. export default blogRoute