million 1 éve
szülő
commit
4b5fc3f006
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      src/views/ZksyncView.vue

+ 3 - 3
src/views/ZksyncView.vue

@@ -169,14 +169,14 @@ const connectWallet = async () => {
 let mainTx = ref('-')
 const getMainTx = () => {
   getZksEra(addressStore.address).then(({tx2}:{tx2:number}) => {
-    mainTx.value = tx2
+    mainTx.value = tx2.toString()
   })
 }
 //获取lite网交易次数
 let liteTx = ref('-')
 const getLiteTx = () => {
   getZksLite(addressStore.address).then(({tx1}:{tx1:number}) => {
-    liteTx.value = tx1
+    liteTx.value = tx1.toString()
   })
 }
 //获取更多信息
@@ -207,7 +207,7 @@ const getMoreInfo = () => {
   //   l2Tol1Tx.value = l2Tol1Times
   //   processTime()
   // })
-  getAllZksSyncData(addressStore.address).then(res=>{
+  getAllZksSyncData(addressStore.address).then((res:any)=>{
     amount.value = res.totalExchangeAmount
     contract.value = res.contractActivity
     tradingTimeArr.value = res.overTimeArr