把 mutations 里的 updateXxx 方法改名为 setXxx。

把 desserts 改名为 itemList。
This commit is contained in:
luk.lu
2018-11-28 22:57:30 +08:00
parent f70e5bd73d
commit ac4c403ae0
8 changed files with 39 additions and 39 deletions

View File

@@ -10,7 +10,7 @@ export default {
{ text: 'node.thType', value: 'type', align: 'center' },
{ text: 'node.thHash', value: 'hash', align: 'center' },
],
desserts: [
itemList: [
{
height: '1',
timestamp: '2011-11-20',
@@ -28,17 +28,17 @@ export default {
inputFilter(state, filter) {
state.filter = filter
},
updateIpAddress(state, ipAddress) {
setIpAddress(state, ipAddress) {
state.ipAddress = ipAddress
},
updateDesserts(state, desserts) {
state.desserts = desserts
setItemList(state, itemList) {
state.itemList = itemList
},
},
actions: {
updateNodeInfo({ state, commit }) {
commit('updateIpAddress', axios.defaults.baseURL)
commit('setIpAddress', axios.defaults.baseURL)
},
},