Browse Source

workFlowIframe修改src错误

11wqe1 1 week ago
parent
commit
d15f46150c
1 changed files with 1 additions and 1 deletions
  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();
                 }