From 710e11939707d73750d46f46a5926ad3c5d97cdc Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Wed, 2 Mar 2022 20:47:14 +0800 Subject: [PATCH] feat: add about page --- mock/asyncRoutes.ts | 8 ++ .../ReIcon/src/iconifyIconOffline.ts | 2 + src/layout/frameView.vue | 11 +- src/plugins/i18n/en/menus.ts | 7 +- src/plugins/i18n/zh-CN/menus.ts | 7 +- src/router/index.ts | 11 +- src/router/modules/about.ts | 32 +++++ src/router/modules/externalLink.ts | 26 ---- src/router/modules/index.ts | 4 +- src/utils/is.ts | 3 +- src/utils/link.ts | 3 +- src/views/about.vue | 136 ++++++++++++++++++ src/views/components/map/index.vue | 2 +- src/views/components/selector/index.vue | 30 ++-- src/views/welcome.vue | 2 +- types/global.d.ts | 9 ++ vite.config.ts | 11 +- 17 files changed, 239 insertions(+), 65 deletions(-) create mode 100644 src/router/modules/about.ts delete mode 100644 src/router/modules/externalLink.ts create mode 100644 src/views/about.vue diff --git a/mock/asyncRoutes.ts b/mock/asyncRoutes.ts index c03679f6b..60fffa03e 100644 --- a/mock/asyncRoutes.ts +++ b/mock/asyncRoutes.ts @@ -84,6 +84,14 @@ const frameRouter = { frameSrc: "https://pure-admin-doc.vercel.app" } }, + { + path: "/external", + name: "https://pure-admin-doc.vercel.app", + meta: { + title: "menus.externalLink", + i18n: true + } + }, { path: "/iframe/ep", name: "reFrameEp", diff --git a/src/components/ReIcon/src/iconifyIconOffline.ts b/src/components/ReIcon/src/iconifyIconOffline.ts index 5dc4c982d..939db616f 100644 --- a/src/components/ReIcon/src/iconifyIconOffline.ts +++ b/src/components/ReIcon/src/iconifyIconOffline.ts @@ -59,11 +59,13 @@ import arrowLeftSLine from "@iconify-icons/ri/arrow-left-s-line"; import logoutCircleRLine from "@iconify-icons/ri/logout-circle-r-line"; import nodeTree from "@iconify-icons/ri/node-tree"; import ubuntuFill from "@iconify-icons/ri/ubuntu-fill"; +import questionLine from "@iconify-icons/ri/question-line"; addIcon("arrow-right-s-line", arrowRightSLine); addIcon("arrow-left-s-line", arrowLeftSLine); addIcon("logout-circle-r-line", logoutCircleRLine); addIcon("node-tree", nodeTree); addIcon("ubuntu-fill", ubuntuFill); +addIcon("question-line", questionLine); // Font Awesome 4 import faUser from "@iconify-icons/fa/user"; diff --git a/src/layout/frameView.vue b/src/layout/frameView.vue index 3468d1d0d..589944292 100644 --- a/src/layout/frameView.vue +++ b/src/layout/frameView.vue @@ -4,13 +4,13 @@ + + + + + + + 关于 + + + + Pure-Admin 是一个基于Vue3、Vite2、TypeScript、Element-Plus + 的中后台解决方案,它可以帮助您快速搭建企业级中后台,提供现成的开箱解决方案及丰富的示例。原则上不收取任何费用及版权,可以放心使用,不过如需二次开源(比如用此平台二次开发并开源)请联系作者获取许可! + + + + + + + 项目信息 + + + + + {{ version }} + + + {{ lastBuildTime }} + + + + 文档地址 + + + + + 预览地址 + + + + + Github + + + + 点击链接加入群聊【Pure Admin】 + + + + + + + + 生产环境依赖 + + + + + + {{ item.field }} + + + + + + + + + 开发环境依赖 + + + + + + {{ item.field }} + + + + + + + + diff --git a/src/views/components/map/index.vue b/src/views/components/map/index.vue index af9cd48ab..5d091d06f 100644 --- a/src/views/components/map/index.vue +++ b/src/views/components/map/index.vue @@ -8,6 +8,6 @@ import { Amap } from "/@/components/ReMap"; diff --git a/src/views/components/selector/index.vue b/src/views/components/selector/index.vue index 61e1aa4fe..027a68552 100644 --- a/src/views/components/selector/index.vue +++ b/src/views/components/selector/index.vue @@ -22,22 +22,20 @@ const selectedVal = ({ left, right }): void => { - - - - - {{ item.title }} - - - - 选中范围:{{ selectRange }} - - + + + + {{ item.title }} + + + + 选中范围:{{ selectRange }} +