This commit is contained in:
Fanzink 2022-12-11 20:56:46 +08:00
parent f7938f30e2
commit a5a4f93328
3 changed files with 33 additions and 6 deletions

View File

@ -44,10 +44,12 @@ export const moduleRoutes = {
path: '/', path: '/',
component: () => import('@/views/main'), component: () => import('@/views/main'),
name: 'main', name: 'main',
redirect: { name: 'home' }, // redirect: { name: 'home' },
redirect: { name: 'sys-log-login' },
meta: { title: '主入口布局' }, meta: { title: '主入口布局' },
children: [ 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 } }
] ]
} }

View File

@ -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 Vue from 'vue'
import Vuex from 'vuex' import Vuex from 'vuex'
import cloneDeep from 'lodash/cloneDeep' import cloneDeep from 'lodash/cloneDeep'
@ -23,11 +31,13 @@ export default new Vuex.Store({
contentTabs: [ contentTabs: [
{ {
...window.SITE_CONFIG['contentTabDefault'], ...window.SITE_CONFIG['contentTabDefault'],
'name': 'home', 'name': 'sys-log-login',
// 'name': 'home',
'title': 'home' 'title': 'home'
} }
], ],
contentTabsActiveName: 'home' // contentTabsActiveName: 'home'
contentTabsActiveName: 'sys-log-login'
}, },
modules: { modules: {
user user

View File

@ -1,6 +1,14 @@
<!--
* @Descripttion:
* @version:
* @Author: fzq
* @Date: 2022-12-09 15:44:37
* @LastEditors: fzq
* @LastEditTime: 2022-12-11 20:47:56
-->
<template> <template>
<el-card shadow="never" class="aui-card--fill"> <el-card shadow="never" class="aui-card--fill">
<div class="mod-home"> <!-- <div class="mod-home">
<h3>项目介绍</h3> <h3>项目介绍</h3>
<ul> <ul>
<li> <li>
@ -21,10 +29,17 @@
<ul> <ul>
<li>扫码下面的二维码关注人人开源公众号回复加群即可根据提示加入微信群</li> <li>扫码下面的二维码关注人人开源公众号回复加群即可根据提示加入微信群</li>
</ul> </ul>
</div> </div> -->
</el-card> </el-card>
</template> </template>
<script>
export default {
created() {
this.$router.replace({ name: 'sys-log-login' })
},
}
</script>
<style> <style>
.mod-home { .mod-home {
line-height: 1.5; line-height: 1.5;