首页跳转到子路由

This commit is contained in:
xing 2020-06-17 11:01:29 +08:00
parent 81b0bab380
commit 055fd8c871
3 changed files with 22 additions and 2 deletions

View File

@ -33,7 +33,12 @@
</el-submenu> </el-submenu>
</el-menu> </el-menu>
</el-aside> </el-aside>
<el-main>Main</el-main>
<el-main>
<!--路由点位符-->
<router-view></router-view>
</el-main>
</el-container> </el-container>
</el-container> </el-container>

View File

@ -0,0 +1,15 @@
<template>
<div>
<h1>welcome</h1>
</div>
</template>
<script>
export default {
name: 'welcome'
}
</script>
<style scoped>
</style>

View File

@ -1,6 +1,6 @@
import Vue from 'vue' import Vue from 'vue'
import App from './App.vue' import App from './App.vue'
import router from './router' import router from './router/router'
import ElementUI from 'element-ui' import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css' import 'element-ui/lib/theme-chalk/index.css'
import './assets/fonts/iconfont.css' import './assets/fonts/iconfont.css'