update arrows
This commit is contained in:
@@ -5,6 +5,10 @@ Vue.use(Vuex)
|
||||
|
||||
export default new Vuex.Store({
|
||||
state: {
|
||||
topLeftArrowRolling: false,
|
||||
topRightArrowRolling: false,
|
||||
bottomLeftArrowRolling: false,
|
||||
bottomRightArrowRolling: false,
|
||||
kilnPressure: 999,
|
||||
oilTable1: {},
|
||||
oilTable2: {},
|
||||
@@ -31,6 +35,18 @@ export default new Vuex.Store({
|
||||
mutations: {
|
||||
update(state, payload) {
|
||||
switch (payload.target) {
|
||||
case 'top-right-arrow': {
|
||||
state.topRightArrowRolling = payload.data
|
||||
}
|
||||
case 'top-left-arrow': {
|
||||
state.topLeftArrowRolling = payload.data
|
||||
}
|
||||
case 'bottom-right-arrow': {
|
||||
state.bottomRightArrowRolling = payload.data
|
||||
}
|
||||
case 'bottom-left-arrow': {
|
||||
state.bottomLeftArrowRolling = payload.data
|
||||
}
|
||||
case 'oil-1': {
|
||||
state.oilTable1 = payload.data
|
||||
//console.log('更换' + payload.target + '的数据' + payload.data)
|
||||
@@ -72,7 +88,7 @@ export default new Vuex.Store({
|
||||
break
|
||||
}
|
||||
case 'kiln-water-in': {
|
||||
state.kilnWaterIn = payload.data
|
||||
state.kilnWaterIn = payload.data
|
||||
//console.log('更换' + payload.target + '的数据' + payload.data)
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user