From 4fe5fd943d832547883440d38e52948eaccadbf8 Mon Sep 17 00:00:00 2001
From: lyt <1105290566@qq.com>
Date: Fri, 26 Feb 2021 18:39:44 +0800
Subject: [PATCH] =?UTF-8?q?'admin-21.02.26:=E9=A6=96=E9=A1=B5=E6=95=B0?=
=?UTF-8?q?=E5=AD=97=E5=8A=A8=E7=94=BB=E6=BB=9A=E5=8A=A8=E6=95=88=E6=9E=9C?=
=?UTF-8?q?=E3=80=81=E6=B7=BB=E5=8A=A0=E5=85=A8=E5=B1=80=E4=BF=AE=E6=94=B9?=
=?UTF-8?q?=E7=BD=91=E7=AB=99=E6=A0=87=E9=A2=98=E7=AD=89'?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
index.html | 3 ++-
package.json | 1 +
src/router/index.ts | 3 ++-
src/store/index.ts | 4 +++-
src/utils/themeConfig.ts | 9 ++++++++-
src/views/home/index.vue | 21 +++++++++++++++++----
src/views/layout/logo/index.vue | 9 +++++++--
src/views/login/index.vue | 4 +++-
8 files changed, 43 insertions(+), 11 deletions(-)
diff --git a/index.html b/index.html
index 544dd5d6..7fc83245 100644
--- a/index.html
+++ b/index.html
@@ -6,7 +6,8 @@
{
- document.title = `${to.meta.title} - vue-admin-wonderful-next` || `vue-admin-wonderful-next`
+ document.title = `${to.meta.title} - ${themeConfig.globalTitle}` || themeConfig.globalTitle
NProgress.configure({ showSpinner: false })
if (to.meta.title) NProgress.start()
const token = getSession('token')
diff --git a/src/store/index.ts b/src/store/index.ts
index ab71d81d..db7816b6 100644
--- a/src/store/index.ts
+++ b/src/store/index.ts
@@ -43,7 +43,9 @@ export interface RootStateTypes {
animation: string,
columnsAsideStyle: string,
layout: string,
- isRequestRoutes: boolean
+ isRequestRoutes: boolean,
+ globalTitle: string,
+ globalViceTitle: string,
},
routes: Array