fix: 修复手机看的时候,点开左边侧边栏,点空白的地方不会隐藏的bug
This commit is contained in:
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user