Browse Source

完善 打包

million 1 year ago
parent
commit
673e1f7804
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/views/HomeView.vue

+ 5 - 5
src/views/HomeView.vue

@@ -195,11 +195,11 @@ const getMoreInfo = () => {
         l1Tol2Times:number
         l2Tol1Times:number
       }) => {
-    amount.value = totalExchangeAmount
-    contract.value = contractActivity
+    amount.value = totalExchangeAmount.toString()
+    contract.value = contractActivity.toString()
     tradingTimeArr.value = overTimeArr
-    l1Tol2Tx.value = l1Tol2Times
-    l2Tol1Tx.value = l2Tol1Times
+    l1Tol2Tx.value = l1Tol2Times.toString()
+    l2Tol1Tx.value = l2Tol1Times.toString()
     processTime()
   })
 }
@@ -218,7 +218,7 @@ let layerInfo = ref<any>({
   arr:[]
 })
 const getLayerInfo = () => {
-  getLayerData('0x555b07470647Cd159FF6595771054Aee7343e853',apiKey).then((
+  getLayerData(address.value,apiKey).then((
       {arb, avax, bsc, eth, ftm, matic, metis, op, total, arr}:{arb:string, avax:string, bsc:string, eth:string, ftm:string, matic:string, metis:string, op:string, total:string, arr:any[]}
   ) => {
     layerInfo.value = {