处理h5报错问题

This commit is contained in:
2024-12-17 11:31:29 +08:00
parent 43c79cc554
commit b5b403c7b1

View File

@@ -462,6 +462,7 @@
},
// 移动视频信息的样式
tabBarStyle() {
let style = {
// 滑块在页面渲染后第一次滑动时,无需动画效果
'transition-duration': `${1}s`,
@@ -758,11 +759,14 @@
// #ifdef H5
let el = document.querySelector('.uni-video-bar');
console.log(el, '2222222')
if (val) {
el.style = 'display:block !important;';
} else {
el.style = 'display:none !important;';
if(el){
if (val) {
el.style = 'display:block !important;';
} else {
el.style = 'display:none !important;';
}
}
// #endif
},
},