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); + }) + } }