From 5ac723ba38ca5ec23f514fbfe7a2b4babada3dfd Mon Sep 17 00:00:00 2001 From: James-9696 Date: Thu, 24 Oct 2024 01:14:32 -0700 Subject: [PATCH] fix: modify review code --- examples/sites/demos/pc/app/dialog-box/lock-scroll.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 } } }