增加登录页

This commit is contained in:
chenghx
2018-08-03 14:02:36 +08:00
parent f5b569f170
commit 9455db43f4
7 changed files with 337 additions and 149 deletions

View File

@@ -61,7 +61,7 @@ export default {
}
},
beforeCreate () {
menuData = this.$router.options.routes
menuData = this.$router.options.routes.find((item) => item.path === '/').children
}
}
</script>

View File

@@ -15,8 +15,10 @@
</a-menu-item>
<a-menu-divider />
<a-menu-item>
<a-icon type="poweroff" />
<span>退出登录</span>
<router-link to="/login">
<a-icon type="poweroff" />
<span>退出登录</span>
</router-link>
</a-menu-item>
</a-menu>
</a-dropdown>

View File

@@ -0,0 +1,17 @@
<template>
<gloabl-layout>
<router-view />
</gloabl-layout>
</template>
<script>
import GloablLayout from './GloablLayout'
export default {
name: 'MenuView',
components: {GloablLayout}
}
</script>
<style scoped>
</style>