11wqe1 4 месяцев назад
Родитель
Сommit
d15f46150c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/components/classRoomHelper/component/workFlowIframe.vue

+ 1 - 1
src/components/classRoomHelper/component/workFlowIframe.vue

@@ -22,7 +22,7 @@ export default {
             handler: function(newVal, oldVal) {
                 if (newVal) {
                     this.checkIndex = 0
-                    this.src = newVal[this.checkIndex].src ? newVal[this.checkIndex].src : ''
+                    this.src = (newVal && newVal.length && newVal[this.checkIndex].src) ? newVal[this.checkIndex].src : ''
                     console.log('-------------------',this.src);
                     this.$forceUpdate();
                 }