From 7182cf69262e089a273fe991ed7761a01963ccbe Mon Sep 17 00:00:00 2001 From: queenwuli <942534046@qq.com> Date: Thu, 24 Mar 2022 16:27:32 +0800 Subject: [PATCH] gx --- src/pages/index/index.vue | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 812ef35..17bf2e1 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -132,14 +132,16 @@ showAccreditModal() } } - - onMounted(() => { - proxy.getAddress(); + async function init () { + await proxy.getAddress(); if (proxy.walletAddress) { proxy.isApprove() }else{ showAccreditModal(); } + } + onMounted(() => { + init() }) return { local: ref('zh'), -- Gitblit v1.9.1