From 8ffa7da8b1353acb2fb119ea188909e3cf470fdb Mon Sep 17 00:00:00 2001
From: cebgcontract <99630598+cebgcontract@users.noreply.github.com>
Date: Thu, 5 May 2022 13:20:03 +0800
Subject: [PATCH] =?UTF-8?q?native=E7=9A=84=E7=99=BB=E5=BD=95=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E5=A2=9E=E5=8A=A0=E8=BF=94=E5=9B=9Enonce?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/chain/ChainManager.ts | 3 +++
src/views/mobile/NativeLogin.vue | 8 ++++++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/chain/ChainManager.ts b/src/chain/ChainManager.ts
index d1ddcfa..05cee30 100644
--- a/src/chain/ChainManager.ts
+++ b/src/chain/ChainManager.ts
@@ -84,6 +84,7 @@ export default class ChainManager {
net_id: AppModule.chainId
})
nonce = preRequest.nonce + ''
+ AppModule.updateNonce(nonce)
}
await UserModule.Login({
@@ -115,6 +116,8 @@ export default class ChainManager {
await UserModule.LogOut()
}
AppModule.updateStep(0)
+ }
+ if (preRequest.nonce) {
AppModule.updateNonce(preRequest.nonce + '')
}
} catch (err) {
diff --git a/src/views/mobile/NativeLogin.vue b/src/views/mobile/NativeLogin.vue
index 53380ff..4e3caaf 100644
--- a/src/views/mobile/NativeLogin.vue
+++ b/src/views/mobile/NativeLogin.vue
@@ -1,6 +1,6 @@
-
+