第一版本

This commit is contained in:
2021-09-30 17:00:15 +08:00
parent d03cef9685
commit de7d9b29b2
3 changed files with 12 additions and 5 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -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