From 597c97fd1b74622aef3c42a206ca2bb0781c9db4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Thu, 1 Feb 2024 01:17:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=BA=8C=E7=BB=B4=E7=A0=81?= =?UTF-8?q?=E6=9C=89=E6=97=B6=E5=80=99=E4=B8=8D=E5=87=BA=E6=9D=A5=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/InviteScanCode.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/login/InviteScanCode.vue b/src/views/login/InviteScanCode.vue index a1d2f12..266cfc4 100644 --- a/src/views/login/InviteScanCode.vue +++ b/src/views/login/InviteScanCode.vue @@ -134,10 +134,13 @@ export default { }, mounted() { removeToken() - var s1 = document.createElement('script'); - s1.type = 'text/javascript'; - s1.src = 'https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js'; - document.body.appendChild(s1); + this.$nextTick(()=>{ + var s1 = document.createElement('script'); + s1.type = 'text/javascript'; + s1.src = 'https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js'; + document.body.appendChild(s1); + }) + } }