|
@@ -324,12 +324,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
+ let _this = this
|
|
|
window.addEventListener('message', function (e) { // 监听 message 事件
|
|
|
if(e.data && e.data.code){
|
|
|
console.log(e);
|
|
|
- this.loginType = 'bind'
|
|
|
+ _this.loginType = 'bind'
|
|
|
console.log(e.data.code);
|
|
|
- console.log(this.loginType);
|
|
|
+ console.log(_this.loginType);
|
|
|
}
|
|
|
});
|
|
|
// this.getLoading();
|