feat:文章页新增面包屑

This commit is contained in:
Xwen
2023-12-17 11:57:46 +08:00
parent 0d5e993042
commit 72307cd89f
7 changed files with 172 additions and 14 deletions

View File

@@ -42,6 +42,9 @@ const router = createRouter({
name: "index",
path: "/index",
component: () => import("../views/home/Index.vue"),
meta: {
title: "首页",
},
},
{
name: "article",
@@ -52,6 +55,9 @@ const router = createRouter({
name: "discuss",
path: "/discuss/:plateId?",
component: () => import("../views/Discuss.vue"),
meta: {
title: "板块",
},
},
{
//artTypediscuss主题、article文章
@@ -65,6 +71,14 @@ const router = createRouter({
path: "/profile",
component: () => import("../views/profile/Index.vue"),
},
{
name: "themeCover",
path: "/article/:discussId",
component: () => import("../views/Article.vue"),
meta: {
title: "主题封面",
},
},
],
},
{ path: "/:pathMatch(.*)*", name: "NotFound", component: NotFound },