Browse Source

iframe窗口通信调整

fenghaifu 2 years ago
parent
commit
99e947fc99
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/views/process-center/applyListOuter.vue

+ 6 - 1
src/views/process-center/applyListOuter.vue

@@ -25,7 +25,12 @@ export default {
         
         
     },
     },
     mounted(){
     mounted(){
-        window.startApply = this.startApply;
+        //window.startApply = this.startApply;
+        window.addEventListener('message',({data})=>{
+            if (data.msg == "startApply"){
+                this.startApply(data.data);
+            }
+        })
     },
     },
     methods:{
     methods:{
         loadSrc(){
         loadSrc(){