From a39fc77f118e8d2933ec53b38a43a956ccefcfe5 Mon Sep 17 00:00:00 2001 From: xingyuv Date: Fri, 24 Mar 2023 14:38:08 +0800 Subject: [PATCH] feat: add title --- .env | 2 +- LICENSE | 2 +- README.md | 4 ---- src/layouts/default/footer/index.vue | 5 ++++- src/views/dashboard/workbench/components/data.ts | 2 +- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.env b/.env index e94bec4f..57bfc6b7 100644 --- a/.env +++ b/.env @@ -5,7 +5,7 @@ VITE_PORT = 80 VITE_GLOB_APP_TITLE = 芋道管理系统 # 简称,用于配置文件名字 不要出现空格、数字开头等特殊字符 -VITE_GLOB_APP_SHORT_NAME = Vben +VITE_GLOB_APP_SHORT_NAME = Yudao_Admin # 租户开关 VITE_GLOB_APP_TENANT_ENABLE = true diff --git a/LICENSE b/LICENSE index ba2fe3b1..b9c65c20 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020-present, Vben +Copyright (c) 2023-present, xingyuv Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 68abc482..bb1fb994 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,6 @@ [gitee](https://gitee.com/xingyuv/vue-vben-admin) [github](https://github.com/xingyuv/vue-vben-admin) -## 后台 -[gitee](https://gitee.com/zhijiantianya/ruoyi-vue-pro) -[github](https://github.com/YunaiV/ruoyi-vue-pro) - ## 预览地址 [预览地址](http://vben.x-surge.com) diff --git a/src/layouts/default/footer/index.vue b/src/layouts/default/footer/index.vue index 0cc1a6b7..d3bb5fd1 100644 --- a/src/layouts/default/footer/index.vue +++ b/src/layouts/default/footer/index.vue @@ -7,7 +7,7 @@ {{ t('layout.footer.onlineDocument') }} -
Copyright ©2020 Vben Admin
+
Copyright ©2023 {{ SITE_TITLE }}
@@ -26,7 +26,10 @@ import { useRouter } from 'vue-router' import { useDesign } from '@/hooks/web/useDesign' import { useLayoutHeight } from '../content/useContentViewHeight' +const SITE_TITLE = ref(import.meta.env.VITE_GLOB_APP_TITLE) + const Footer = Layout.Footer + const { t } = useI18n() const { getShowFooter } = useRootSetting() const { currentRoute } = useRouter() diff --git a/src/views/dashboard/workbench/components/data.ts b/src/views/dashboard/workbench/components/data.ts index b6371cff..f465fee2 100644 --- a/src/views/dashboard/workbench/components/data.ts +++ b/src/views/dashboard/workbench/components/data.ts @@ -74,7 +74,7 @@ export const dynamicInfoItems: DynamicInfoItem[] = [ }, { avatar: 'dynamic-avatar-4|svg', - name: 'Vben', + name: 'XingyuV', date: '2天前', desc: `发表文章 如何编写一个Vite插件 ` },