diff --git a/examples/sites/demos/pc/app/dialog-box/lock-scroll.vue b/examples/sites/demos/pc/app/dialog-box/lock-scroll.vue index 11a5bd1d36..4dbfd3b76d 100644 --- a/examples/sites/demos/pc/app/dialog-box/lock-scroll.vue +++ b/examples/sites/demos/pc/app/dialog-box/lock-scroll.vue @@ -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 } } }