浏览代码

Merge branch 'master' of http://192.168.0.115:3000/chenzhiguang/zhengzhou_university

tremble 4 年之前
父节点
当前提交
1aa2a3dcae
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      web/src/views/gui/newguide.vue

+ 1 - 1
web/src/views/gui/newguide.vue

@@ -162,7 +162,7 @@ export default {
         this.guide = window.player.model.images;
          //监听导览状态
           window.player.on('onplayStatus', (data)=>{
-            this.guideActive = data.destinationItem[0]
+            this.guideActive = data.destinationItem && data.destinationItem[0]
             this.swiper && this.swiper.slideTo(this.guideActive)
             //if (!data.tourIsPlaying) {
             //  this.guideActive=''