From 7face64d013ac1697be4b1a61fd7c5d5307ffb7a Mon Sep 17 00:00:00 2001 From: yuyongdong Date: Fri, 21 Jun 2024 10:45:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=9D=E5=A7=8B=E5=8C=96pa?= =?UTF-8?q?ssprod?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/layout/NavBar.vue | 6 ++++++ src/wallet/passPort.js | 14 +++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/components/layout/NavBar.vue b/src/components/layout/NavBar.vue index e9a21c6..c28380a 100644 --- a/src/components/layout/NavBar.vue +++ b/src/components/layout/NavBar.vue @@ -282,6 +282,12 @@ watch(() => route.path,(newPath, oldPath) => { } }) +onMounted( async () => { + if( immutableStore.accessToken) { + await new PassportWallet().connect() + } +}) +