给fullPage加ref 后使用fullPage的api
//dialog显示
dialogShow(){
// this.$refs.fullpage.api.setAllowScrolling(false); //禁用鼠标滚动这个会有问题,所以要用setAutoScrolling属性
this.$refs.fullpage.api.setAutoScrolling(false); //禁止滑动
document.querySelector('body').style.overflow ="hidden"
},
//dialog隐藏
dialogHide(){
this.$refs.fullpage.api.setAutoScrolling(true); //放开滑动
},