Commit c779020b authored by 王炽's avatar 王炽

6666

parent 395ca7a9
...@@ -63,6 +63,23 @@ watch(() => props.visible, (newVal) => { ...@@ -63,6 +63,23 @@ watch(() => props.visible, (newVal) => {
} }
isAnimating.value = false; isAnimating.value = false;
} }
// #ifdef MP-WEIXIN
if (newVal) {
// 弹窗展示时,禁止页面滚动
wx.setPageStyle({
style: {
overflow: 'hidden'
}
});
} else {
// 弹窗关闭时,恢复页面滚动
wx.setPageStyle({
style: {
overflow: 'auto'
}
});
}
}); });
// 关闭弹窗 // 关闭弹窗
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment