From d54969ae507c5c102ad70c2551040a861df4210d Mon Sep 17 00:00:00 2001 From: xingyuv Date: Thu, 13 Apr 2023 10:36:40 +0800 Subject: [PATCH] feat: add about router --- README.md | 2 +- src/settings/siteSetting.ts | 4 ++-- src/store/modules/permission.ts | 5 +++-- src/views/base/about/index.vue | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e7ae2358..845c2810 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ [github](https://github.com/xingyuv/vue-vben-admin) ## 预览地址 -[预览地址](http://vben.x-surge.com) +[预览地址](http://vben.xingyuv.com) ## 开发文档 diff --git a/src/settings/siteSetting.ts b/src/settings/siteSetting.ts index 15f05889..a8425eac 100644 --- a/src/settings/siteSetting.ts +++ b/src/settings/siteSetting.ts @@ -2,7 +2,7 @@ export const GITHUB_URL = 'https://gitee.com/xingyuv/vue-vben-admin' // vue-vben-admin-next-doc -export const DOC_URL = 'http://vben.x-surge.com/' +export const DOC_URL = 'http://vben.xingyuv.com/' // site url -export const SITE_URL = 'http://vben.x-surge.com/' +export const SITE_URL = 'http://vben.xingyuv.com/' diff --git a/src/store/modules/permission.ts b/src/store/modules/permission.ts index c37b125c..2a0a1727 100644 --- a/src/store/modules/permission.ts +++ b/src/store/modules/permission.ts @@ -7,6 +7,7 @@ import { store } from '@/store' import { useUserStore } from './user' import { useAppStoreWithOut } from './app' import { asyncRoutes } from '@/router/routes' +import about from '@/router/routes/modules/about' import dashboard from '@/router/routes/modules/dashboard' import { PAGE_NOT_FOUND_ROUTE } from '@/router/routes/basic' import { transformRouteToMenu } from '@/router/helper/menuHelper' @@ -226,7 +227,7 @@ export const usePermissionStore = defineStore('app-permission', { // Background routing to menu structure // 后台路由到菜单结构 - const backMenuList = transformRouteToMenu([dashboard, ...routeList]) + const backMenuList = transformRouteToMenu([dashboard, ...routeList, about]) this.setBackMenuList(backMenuList) // remove meta.ignoreRoute item @@ -234,7 +235,7 @@ export const usePermissionStore = defineStore('app-permission', { routeList = filter(routeList, routeRemoveIgnoreFilter) routeList = routeList.filter(routeRemoveIgnoreFilter) routeList = flatMultiLevelRoutes(routeList) - routes = [PAGE_NOT_FOUND_ROUTE, dashboard, ...routeList] + routes = [PAGE_NOT_FOUND_ROUTE, dashboard, ...routeList, about] break } diff --git a/src/views/base/about/index.vue b/src/views/base/about/index.vue index 0ce3d309..f4b2ae50 100644 --- a/src/views/base/about/index.vue +++ b/src/views/base/about/index.vue @@ -4,7 +4,7 @@
{{ name }} - 是一个基于Vue3.0、Vite、 Ant-Design-Vue 、TypeScript + 基于Vue3.0、Vite、 Ant-Design-Vue 、TypeScript 的后台解决方案,目标是为中大型项目开发,提供现成的开箱解决方案及丰富的示例,原则上不会限制任何代码用于商用。