Browse Source

【测试postmessa通信】

master
GL 4 years ago
parent
commit
c39ecfb8d0
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/views/login/index.vue

+ 3
- 1
src/views/login/index.vue View File

@@ -72,13 +72,15 @@ export default {
})
},

},
mounted() {
console.log(123);
window.addEventListener('message',function(event){
console.log(event,'++////***');
console.log( "收到" + event.origin + "消息:" + event.data);
}, false);
},
}
};
</script>



Loading…
Cancel
Save