47 lines
999 B
JavaScript
47 lines
999 B
JavaScript
import axios from 'axios'
|
|
|
|
export default {
|
|
namespaced: true,
|
|
state: {
|
|
pageEntity: [5, 10, 25],
|
|
headers: [
|
|
{ text: 'node.thHeight', value: 'height', align: 'center' },
|
|
{ text: 'node.thTimestamp', value: 'timestamp', align: 'center' },
|
|
{ text: 'node.thType', value: 'type', align: 'center' },
|
|
{ text: 'node.thHash', value: 'hash', align: 'center' },
|
|
],
|
|
itemList: [
|
|
{
|
|
height: 'loading',
|
|
timestamp: 'loading',
|
|
type: 'loading',
|
|
hash: 'loading',
|
|
},
|
|
],
|
|
fetching: false,
|
|
filter: '',
|
|
modal: false,
|
|
ipAddress: '',
|
|
},
|
|
|
|
mutations: {
|
|
inputFilter(state, filter) {
|
|
state.filter = filter
|
|
},
|
|
setIpAddress(state, ipAddress) {
|
|
state.ipAddress = ipAddress
|
|
},
|
|
setItemList(state, itemList) {
|
|
state.itemList = itemList
|
|
},
|
|
},
|
|
|
|
actions: {
|
|
updateNodeInfo({ state, commit }) {
|
|
commit('setIpAddress', axios.defaults.baseURL)
|
|
},
|
|
},
|
|
|
|
getters: {},
|
|
}
|