增加登录页
This commit is contained in:
@@ -61,7 +61,7 @@ export default {
|
||||
}
|
||||
},
|
||||
beforeCreate () {
|
||||
menuData = this.$router.options.routes
|
||||
menuData = this.$router.options.routes.find((item) => item.path === '/').children
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -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>
|
||||
|
||||
17
src/components/layout/MenuView.vue
Normal file
17
src/components/layout/MenuView.vue
Normal 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>
|
||||
Reference in New Issue
Block a user