ucservice 1.5.6 → 1.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ucservice",
3
3
  "private": false,
4
- "version": "1.5.6",
4
+ "version": "1.5.7",
5
5
  "description": "统一通信服务",
6
6
  "main": "dist/ucservice.common.js",
7
7
  "style": "ucservice.css",
@@ -1660,14 +1660,16 @@
1660
1660
  this.dispatch('screenchange', {windowNums:num, flag:me._opts.flag});
1661
1661
 
1662
1662
  //设置旋转了的视频样式
1663
- let videoLi = document.querySelector(me.selector).querySelectorAll('li')
1664
- me.VIDEO_DATA.forEach((item, index) => {
1665
- let tel = item.video
1666
- if (!tel&&item.id) {
1667
- videoLi[index].querySelector('video').style = ''
1668
- videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0)
1669
- }
1670
- })
1663
+ if(document.querySelector(me.selector)){
1664
+ let videoLi = document.querySelector(me.selector).querySelectorAll('li')
1665
+ me.VIDEO_DATA.forEach((item, index) => {
1666
+ let tel = item.video
1667
+ if (!tel&&item.id) {
1668
+ videoLi[index].querySelector('video').style = ''
1669
+ videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0)
1670
+ }
1671
+ })
1672
+ }
1671
1673
  //设置旋转视频的样式
1672
1674
  for(let k = 0; k < _li.length; k++){
1673
1675
  let rotateIndex = _li.eq(k).find('button[name=rotateVideo]').attr('rotate-index');
@@ -1677,7 +1679,6 @@
1677
1679
  }, 200);
1678
1680
  // }
1679
1681
  }
1680
-
1681
1682
  },
1682
1683
 
1683
1684
  /**