mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-05 19:41:37 +08:00
parent
5a65032772
commit
6a3ec944c6
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<a-layout :class="['admin-layout', 'beauty-scroll']">
|
||||
<drawer v-if="isMobile" v-model="collapsed">
|
||||
<drawer v-if="isMobile" v-model="drawerOpen">
|
||||
<side-menu :theme="theme.mode" :menuData="menuData" :collapsed="false" :collapsible="false" @menuSelect="onMenuSelect"/>
|
||||
</drawer>
|
||||
<side-menu :class="[fixedSideBar ? 'fixed-side' : '']" :theme="theme.mode" v-else-if="layout === 'side' || layout === 'mix'" :menuData="sideMenuData" :collapsed="collapsed" :collapsible="true" />
|
||||
@ -43,7 +43,8 @@ export default {
|
||||
return {
|
||||
minHeight: minHeight,
|
||||
collapsed: false,
|
||||
showSetting: false
|
||||
showSetting: false,
|
||||
drawerOpen: false
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@ -52,6 +53,11 @@ export default {
|
||||
},
|
||||
layout() {
|
||||
this.setActivated(this.$route)
|
||||
},
|
||||
isMobile(val) {
|
||||
if(!val) {
|
||||
this.drawerOpen = false
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user