소스 검색

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();
                 }