fix: 修复手机看的时候,点开左边侧边栏,点空白的地方不会隐藏的bug

This commit is contained in:
2020-07-15 14:44:27 +08:00
parent 3f8396a254
commit 47fad8167a
3 changed files with 107 additions and 21 deletions

View File

@ -19,7 +19,7 @@
.page-container
#LeftMenu(:style="'display: '+ showLeftMenuValue + ';' + isPhone")
LeftContent
#rightContent
#rightContent(@click='showLeftMenu(false)')
nuxt
Footer
v-dialog
@ -61,11 +61,11 @@ export default {
}
},
methods: {
showLeftMenu () {
if (this.showLeftMenuValue !== 'block') {
this.showLeftMenuValue = 'block'
} else {
showLeftMenu (show) {
if (this.showLeftMenuValue === 'block' || show === false) {
this.showLeftMenuValue = 'none'
} else {
this.showLeftMenuValue = 'block'
}
}
}