watch: {
//加个这个控制就好了
isMaskShow(newValue, oldValue) {
//在这里添加一句样式 ㄟ(≧◇≦)ㄏ
document.body.style.overflow = !newValue ? "auto" : "hidden";
// 是的就是这句话就能解决穿透的问题
if (newValue === true) {
// #ifdef MP-WEIXIN
const children = this.$children;
this.retryComputedComponentRect(children);
// #endif
}
}
},
uniapp在h5端popup会穿透下层页面进行滚动的解决方案
最新推荐文章于 2025-07-22 15:00:18 发布
