首页目录创建

This commit is contained in:
chenxiaoxi
2021-05-07 13:47:40 +08:00
parent 312057f04d
commit 12fcbb0fbd
8 changed files with 54 additions and 24 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
<template>
<div id="vue-admin-beautiful">
<div id="foton">
<router-view />
</div>
</template>
+1 -1
View File
@@ -67,6 +67,6 @@ const setting = {
//代码生成机生成在view下的文件夹名称
templateFolder: 'project',
//是否显示终端donation打印
donation: true,
donation: false,
}
module.exports = setting
+1 -1
View File
@@ -7,7 +7,7 @@ import '@/layouts/export'
Vue.config.productionTip = false
new Vue({
el: '#vue-admin-beautiful',
el: '#foton',
router,
store,
render: (h) => h(App),
+11 -1
View File
@@ -6,6 +6,7 @@
import Vue from 'vue'
import VueRouter from 'vue-router'
import Layout from '@/layouts'
import Home from '@/views/home'
import EmptyLayout from '@/layouts/EmptyLayout'
import { publicPath, routerMode } from '@/config'
@@ -38,6 +39,15 @@ export const constantRoutes = [
export const asyncRoutes = [
{
path: '/',
component: Home,
meta: {
title: '首页',
icon: 'home',
affix: true,
},
},
{
path: '/index',
component: Layout,
redirect: 'index',
children: [
@@ -46,7 +56,7 @@ export const asyncRoutes = [
name: 'Index',
component: () => import('@/views/index/index'),
meta: {
title: '页',
title: '页',
icon: 'home',
affix: true,
},
+7
View File
@@ -351,3 +351,10 @@ template {
[hidden] {
display: none;
}
/* 福田开始 20210507 */
#foton {
width: 100%;
height: 100%;
color: #fff;
}
+5
View File
@@ -73,6 +73,11 @@ $base-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), border 0s,
//默认动画长
$base-transition-time: 0.3s;
/* 福田开始 20210507 */
$primary-bg-color: #10124B;
$primary-border-color: #042579;
$primary-button-color: #004ED0;
:export {
//菜单文字颜色变量导出
menu-color: $base-menu-color;
+27
View File
@@ -0,0 +1,27 @@
<!-- 首页 -->
<template>
<div class="home">首页首页首页首页</div>
</template>
<script>
export default {
name: 'Home',
components: {},
mixins: [],
data() {
return {}
},
computed: {},
watch: {},
mounted() {},
methods: {},
}
</script>
<style lang="scss" scoped>
.home {
width: 100%;
height: 100%;
background: $primary-bg-color;
}
</style>