浏览代码

workFlowIframe修改src错误

11wqe1 8 月之前
父节点
当前提交
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();
                 }