feat:文章页新增面包屑
This commit is contained in:
@@ -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: "板块",
|
||||
},
|
||||
},
|
||||
{
|
||||
//artType:discuss主题、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 },
|
||||
|
||||
Reference in New Issue
Block a user