From 9d9cac8064d1371b96f87f7c4c698e14353753eb Mon Sep 17 00:00:00 2001 From: Ah jung <735878602@qq.com> Date: Fri, 30 Jul 2021 20:00:38 +0800 Subject: [PATCH] Fixes bug add Project Docs --- src/layout/components/TagsView/index.vue | 1 + src/router/modules/docs.ts | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 src/router/modules/docs.ts diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index a749c9a..4448455 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -557,6 +557,7 @@ cursor: pointer; display: inline-block; position: relative; + flex: 0 0 auto; span { float: left; diff --git a/src/router/modules/docs.ts b/src/router/modules/docs.ts new file mode 100644 index 0000000..679d982 --- /dev/null +++ b/src/router/modules/docs.ts @@ -0,0 +1,19 @@ +import { RouteRecordRaw } from 'vue-router'; +import { Layout } from '@/router/constant'; +import { DocumentTextOutline } from '@vicons/ionicons5'; +import { renderIcon } from '@/utils/index'; + +const routes: Array = [ + { + path: '/external', + name: 'https://jekip.github.io/docs/', + component: Layout, + meta: { + title: '项目文档', + icon: renderIcon(DocumentTextOutline), + sort: 8, + }, + }, +]; + +export default routes;