区块链首页数据对接

This commit is contained in:
唐明明
2021-09-26 17:38:26 +08:00
parent d9e5150ea2
commit 4a7b322bd4
2 changed files with 27 additions and 63 deletions

View File

@@ -8,31 +8,10 @@
import { request } from '../index'
// 最新区块列表
// 最新统计
const chain = () => {
return request({
url: 'chain'
})
}
// 发行量概况
const situation = () => {
return request({
url: 'nodes'
})
}
// 区块详情
const hash = (hash) => {
return request({
url: 'chain/block/' + hash
})
}
// 区块链首页
const occ = () => {
return request({
url: 'occ/index'
url: 'chain/tasks'
})
}
@@ -54,9 +33,6 @@ const thawlog = (data) => {
export {
chain,
situation,
hash,
occ,
crystals,
thawlog
}