Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-21 11:29:20 +08:00

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