From a5a4f93328a3985949576415de2501954b4fe638 Mon Sep 17 00:00:00 2001 From: Fanzink <460995166@qq.com> Date: Sun, 11 Dec 2022 20:56:46 +0800 Subject: [PATCH] 'update' --- src/router/index.js | 6 ++++-- src/store/index.js | 14 ++++++++++++-- src/views/modules/home.vue | 19 +++++++++++++++++-- 3 files changed, 33 insertions(+), 6 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 6ddb25d..b839a4e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -44,10 +44,12 @@ export const moduleRoutes = { path: '/', component: () => import('@/views/main'), name: 'main', - redirect: { name: 'home' }, + // redirect: { name: 'home' }, + redirect: { name: 'sys-log-login' }, meta: { title: '主入口布局' }, children: [ - { path: '/home', component: () => import('@/views/modules/home'), name: 'home', meta: { title: '首页', isTab: true } } + { path: '/sys-log-login', component: () => import('@/views/modules/sys/log-login'), name: 'sys-log-login', meta: { title: '首页', isTab: true } } + // { path: '/home', component: () => import('@/views/modules/home'), name: 'home', meta: { title: '首页', isTab: true } } ] } diff --git a/src/store/index.js b/src/store/index.js index 8a99380..a075c88 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1,3 +1,11 @@ +/* + * @Descripttion: + * @version: + * @Author: fzq + * @Date: 2022-12-11 20:33:35 + * @LastEditors: fzq + * @LastEditTime: 2022-12-11 20:43:32 + */ import Vue from 'vue' import Vuex from 'vuex' import cloneDeep from 'lodash/cloneDeep' @@ -23,11 +31,13 @@ export default new Vuex.Store({ contentTabs: [ { ...window.SITE_CONFIG['contentTabDefault'], - 'name': 'home', + 'name': 'sys-log-login', + // 'name': 'home', 'title': 'home' } ], - contentTabsActiveName: 'home' + // contentTabsActiveName: 'home' + contentTabsActiveName: 'sys-log-login' }, modules: { user diff --git a/src/views/modules/home.vue b/src/views/modules/home.vue index 056926e..579ad47 100644 --- a/src/views/modules/home.vue +++ b/src/views/modules/home.vue @@ -1,6 +1,14 @@ + +