Ver código fonte

【测试postmessa通信】

master
GL 4 anos atrás
pai
commit
f43fd0d432
1 arquivos alterados com 6 adições e 1 exclusões
  1. +6
    -1
      src/views/login/index.vue

+ 6
- 1
src/views/login/index.vue Ver arquivo

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


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


Carregando…
Cancelar
Salvar