您的位置: 首页 > IT文章 > vue 移动端弹窗后禁止页面滚动 @touchmove.prevent vue 移动端弹窗后禁止页面滚动 @touchmove.prevent 分类: IT文章 • 2022-03-28 23:49:22 可以在遮罩层中添加 @touchmove.prevent 就可以实现禁止页面滚动 注意 弹窗里面有滚动条的也是无法滚动的