Ver Fonte

bug修复

threethousanddream há 3 semanas atrás
pai
commit
e7c5b64194
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      pages/detail/bigdata.vue

+ 3 - 0
pages/detail/bigdata.vue

@@ -20,9 +20,12 @@ export default {
   },
   mounted() {
     let iframe = document.getElementById('iframe')
+    console.log('mounted')
     iframe.onload = () => {
+      console.log('onload')
       let token = Cookies.get('congress')
       iframe.contentWindow.postMessage({token: token, id: this.id}, '*')
+      console.log('sent')
     }
   },
 }