From de7d9b29b279ccbd31d4269cdb8660be380c6e33 Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 30 Sep 2021 17:00:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 13 ++++++++++--- src/api/interfaces/block.ts | 2 +- src/views/Home/index.vue | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 1056ed4..47ba6b0 100644 --- a/.env.example +++ b/.env.example @@ -1,10 +1,17 @@ -NODE_ENV=production +NODE_ENV=development BASE_URL=/ -VUE_APP_VUEX_KEY=vuex +VUE_APP_VUEX_KEY=ex_vuex -VUE_APP_TITLE=Jason.Chen +VUE_APP_TITLE=联盟链浏览器 VUE_APP_API_URL=/api +VUE_APP_BLOCK_URL=https://explorer.lianshang.vip/api + +VUE_APP_MAIN_COIN_SYMBOL=XHC VUE_APP_USERNAME= VUE_APP_PASSWORD= + +VUE_APP_HOME_LIST_SIZE=6 +VUE_APP_BLOCK_LIST_SIZE=20 +VUE_APP_BLOCK_DETAIL_LIST_SIZE=10 diff --git a/src/api/interfaces/block.ts b/src/api/interfaces/block.ts index bf750fc..0fa62f2 100644 --- a/src/api/interfaces/block.ts +++ b/src/api/interfaces/block.ts @@ -1,3 +1,3 @@ import Chain33Rpc from '@33cn/chain33-rpc-api' -export default new Chain33Rpc('https://explorer.lianshang.vip/api', null) +export default new Chain33Rpc(process.env.VUE_APP_BLOCK_URL, null) diff --git a/src/views/Home/index.vue b/src/views/Home/index.vue index 38cdaa3..08ee561 100644 --- a/src/views/Home/index.vue +++ b/src/views/Home/index.vue @@ -141,6 +141,7 @@ const getBlockList = () => { getTradeList() }).finally(() => { blockLoading.value = false + tradeLoading.value = false }) } @@ -157,7 +158,6 @@ async function getTradeList () { } block.getTxByHashes(txHashes).then(res => { - console.log(res.result.txs) tradeList.value = res.result.txs }).finally(() => { tradeLoading.value = false