docs: 完善路由 title 以及文档链接

This commit is contained in:
pany 2023-08-29 19:12:56 +08:00
parent 6593db0d21
commit 46e9ea2f28
2 changed files with 19 additions and 9 deletions

View File

@ -55,9 +55,6 @@ const logout = () => {
</div> </div>
<template #dropdown> <template #dropdown>
<el-dropdown-menu> <el-dropdown-menu>
<a target="_blank" href="https://juejin.cn/post/7089377403717287972">
<el-dropdown-item>中文文档</el-dropdown-item>
</a>
<a target="_blank" href="https://github.com/un-pany/v3-admin-vite"> <a target="_blank" href="https://github.com/un-pany/v3-admin-vite">
<el-dropdown-item>GitHub</el-dropdown-item> <el-dropdown-item>GitHub</el-dropdown-item>
</a> </a>

View File

@ -6,7 +6,7 @@ const Layouts = () => import("@/layouts/index.vue")
/** /**
* *
* redirect/403/404/login Name * redirect/403/404/login Name
*/ */
export const constantRoutes: RouteRecordRaw[] = [ export const constantRoutes: RouteRecordRaw[] = [
{ {
@ -26,6 +26,7 @@ export const constantRoutes: RouteRecordRaw[] = [
path: "/403", path: "/403",
component: () => import("@/views/error-page/403.vue"), component: () => import("@/views/error-page/403.vue"),
meta: { meta: {
title: "403",
hidden: true hidden: true
} }
}, },
@ -33,6 +34,7 @@ export const constantRoutes: RouteRecordRaw[] = [
path: "/404", path: "/404",
component: () => import("@/views/error-page/404.vue"), component: () => import("@/views/error-page/404.vue"),
meta: { meta: {
title: "404",
hidden: true hidden: true
}, },
alias: "/:pathMatch(.*)*" alias: "/:pathMatch(.*)*"
@ -41,6 +43,7 @@ export const constantRoutes: RouteRecordRaw[] = [
path: "/login", path: "/login",
component: () => import("@/views/login/index.vue"), component: () => import("@/views/login/index.vue"),
meta: { meta: {
title: "登录",
hidden: true hidden: true
} }
}, },
@ -71,7 +74,7 @@ export const constantRoutes: RouteRecordRaw[] = [
component: () => import("@/views/unocss/index.vue"), component: () => import("@/views/unocss/index.vue"),
name: "UnoCSS", name: "UnoCSS",
meta: { meta: {
title: "原子 CSS", title: "UnoCSS",
svgIcon: "unocss" svgIcon: "unocss"
} }
} }
@ -79,15 +82,25 @@ export const constantRoutes: RouteRecordRaw[] = [
}, },
{ {
path: "/link", path: "/link",
component: Layouts, meta: {
title: "外链",
svgIcon: "link"
},
children: [ children: [
{ {
path: "https://juejin.cn/post/7089377403717287972", path: "https://juejin.cn/post/7089377403717287972",
component: () => {}, component: () => {},
name: "Link", name: "Link1",
meta: { meta: {
title: "外链", title: "中文文档"
svgIcon: "link" }
},
{
path: "https://juejin.cn/column/7207659644487139387",
component: () => {},
name: "Link2",
meta: {
title: "新手教程"
} }
} }
] ]