feat(projects): 增加项目文档外链

This commit is contained in:
Yanbowen
2021-12-20 14:04:11 +08:00
parent 041012b3ee
commit 1901a0bfb7
5 changed files with 33 additions and 2 deletions

View File

@ -107,6 +107,14 @@ const routeConstMap = new Map<RouteKey, RouteConst>([
title: 'naive文档'
}
],
[
'document_project',
{
name: 'document_project',
path: 'https://docs.soybean.pro/',
title: '项目文档(外链)'
}
],
[
'plugin',
{

View File

@ -1,5 +1,5 @@
import type { RouteRecordRaw } from 'vue-router';
import { BasicLayout } from '@/layouts';
import { BasicLayout, BlankLayout } from '@/layouts';
import { DocumentVue, DocumentVite, DocumentNaive } from '@/views';
import { routeName, routePath, routeTitle } from '../constant';
@ -45,6 +45,16 @@ const document: RouteRecordRaw = {
title: routeTitle('document_naive'),
fullPage: true
}
},
{
name: routeName('document_project'),
path: routePath('document_project'),
component: BlankLayout,
meta: {
requiresAuth: true,
title: routeTitle('document_project'),
fullPage: true
}
}
]
};