添加 favicon;尝试从后台读出 blockList 到 Chain.vue
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 6.7 KiB |
@@ -6,11 +6,11 @@ export default {
|
||||
errorMnemonic: '输入的密语无效',
|
||||
},
|
||||
home: {
|
||||
titleOwner: '个人中心',
|
||||
titleChain: '链内数据',
|
||||
titleNode: '当前节点',
|
||||
titleNetwork: '对等网络',
|
||||
titleMarket: '应用商城',
|
||||
titleOwner: '个人',
|
||||
titleChain: '区块',
|
||||
titleNode: '节点',
|
||||
titleNetwork: '网络',
|
||||
titleMarket: '应用',
|
||||
},
|
||||
owner: {
|
||||
tableHeader: '我的交易',
|
||||
|
||||
@@ -26,10 +26,6 @@ const router = new Router({
|
||||
path: 'owner',
|
||||
component: Owner,
|
||||
},
|
||||
{
|
||||
path: 'chain',
|
||||
component: Chain,
|
||||
},
|
||||
{
|
||||
path: 'node',
|
||||
component: Node,
|
||||
@@ -38,6 +34,10 @@ const router = new Router({
|
||||
path: 'network',
|
||||
component: Network,
|
||||
},
|
||||
{
|
||||
path: 'chain',
|
||||
component: Chain,
|
||||
},
|
||||
{
|
||||
path: 'market',
|
||||
component: Market,
|
||||
|
||||
@@ -90,6 +90,12 @@ const { mapState, mapGetters, mapActions, mapMutations } = createNamespacedHelpe
|
||||
export default {
|
||||
name: 'Chain',
|
||||
|
||||
data(){
|
||||
return {
|
||||
blockList:[],
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
...mapState([
|
||||
'headers',
|
||||
@@ -102,6 +108,15 @@ export default {
|
||||
...mapGetters([]),
|
||||
},
|
||||
|
||||
created: async function(){
|
||||
let result=await axios({
|
||||
method:'post',
|
||||
url:location.protocol+'//'+location.hostname+':6842/api/Block/getBlockList',
|
||||
data: {config:{order:'height DESC'}}
|
||||
})
|
||||
this.blockList=result.data||[]
|
||||
},
|
||||
|
||||
methods: {
|
||||
...mapActions([
|
||||
]),
|
||||
|
||||
Reference in New Issue
Block a user