Browse Source

[edit] fix

wenliming 2 năm trước cách đây
mục cha
commit
e64f2e779e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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) {