data中设置一个数据
windowheight:{
//高度等于屏幕高度
height:document.documentElement.clientHeight+'px',
overflow:'hidden',
}
在最外层的盒子进行判断,蒙版markshow出现为ture,就执行上面代码,
当关闭蒙版,设置为false,不执行上述代码,页面正常滚动
<div class="detail" :style="markshow == true?windowheight:''">