Browse Source

【测试postmessa通信】

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

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

@@ -72,7 +72,12 @@ export default {
}) })
}, },



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


Loading…
Cancel
Save