Quellcode durchsuchen

iframe窗口通信调整

fenghaifu vor 2 Jahren
Ursprung
Commit
99e947fc99
1 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen
  1. 6 1
      src/views/process-center/applyListOuter.vue

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

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