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, keepAliveNames: Array, diff --git a/src/utils/themeConfig.ts b/src/utils/themeConfig.ts index d3524bb6..dce6514f 100644 --- a/src/utils/themeConfig.ts +++ b/src/utils/themeConfig.ts @@ -101,5 +101,12 @@ export default { /* 后端控制路由 ------------------------------- */ // 是否开启后端控制路由 - isRequestRoutes: false + isRequestRoutes: false, + + /* 全局网站标题 / 副标题 + ------------------------------- */ + // 网站主标题(菜单导航、浏览器当前网页标题) + globalTitle: 'vue-admin-wonderful-next', + // 网站副标题(登录页顶部文字) + globalViceTitle: 'SMALL@小柒' } \ No newline at end of file diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 0c13cc6a..f2ebb7fc 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -18,9 +18,9 @@
{{v.title}}
-
{{v.titleNum}}
+
{{v.tip}}
-
{{v.tipNum}}
+
@@ -94,8 +94,9 @@