wenliming hace 2 años
padre
commit
e64f2e779e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/view/iframe/treasure-hunt/index.vue

+ 1 - 1
src/view/iframe/treasure-hunt/index.vue

@@ -67,8 +67,8 @@ onMounted(() => {
 })
 
 const onWindowMessage = () => {
-  console.log('onWindowMessage', res);
   window.onmessage = (res) => {
+    console.log('onWindowMessage', res);
     if(res && res.data && res.data.actionType) {
       let msgData = res.data.data;
       if(msgData.iframeGUId == state.iframeId) {