Skip to content

Commit

Permalink
fix: modify review code
Browse files Browse the repository at this point in the history
  • Loading branch information
James-9696 committed Oct 24, 2024
1 parent 405a278 commit 5ac723b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/sites/demos/pc/app/dialog-box/lock-scroll.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@ export default {
if (isScroll) {
document.body.style.overflow = 'auto'
document.body.style.height = '130vh'
visible1.value = true
this.visible1 = true
} else {
document.body.style.overflow = 'hidden'
document.body.style.height = '100vh'
visible2.value = true
this.visible2 = true
}
},
closeDlg(isScroll) {
if (isScroll) {
document.body.style.overflow = 'hidden'
document.body.style.height = '100vh'
visible1.value = false
this.visible1 = false
} else {
visible2.value = false
this.visible2 = false
}
}
}
Expand Down

0 comments on commit 5ac723b

Please sign in to comment.