From adaa8375ad6e20c14c2775d5a92667e7c7db8c77 Mon Sep 17 00:00:00 2001 From: GL <954534408@qq.com> Date: Tue, 3 Nov 2020 17:15:06 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=B5=8B=E8=AF=95postmessa=E9=80=9A?= =?UTF-8?q?=E4=BF=A1end=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index d3170bf..eb0029d 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -73,10 +73,11 @@ export default { }, }, mounted() { + window.addEventListener( "message", event => { - if (event.origin === "https://bh5test.malls.iformall.com/") { + if ( typeof(event.data)=='string') { let tempAppid = event.data; this.appId = tempAppid }else{