|
@@ -40,7 +40,6 @@ const mutations = {
|
|
|
|
|
|
const actions = {
|
|
|
setAirStatus({ commit, state }, air) {
|
|
|
- console.log("setAirStatus")
|
|
|
commit("SET_AIES_TATUS", air)
|
|
|
;(function (airData) {
|
|
|
setTimeout(() => {
|
|
@@ -54,8 +53,8 @@ const actions = {
|
|
|
})(air)
|
|
|
},
|
|
|
setLampStatus({ commit, state }, lamp) {
|
|
|
- commit("SET_LAMP_STATUS", lamp)
|
|
|
- state.lampSwitchStatus[lampData.id] = (function (lampData) {
|
|
|
+ commit("SET_LAMP_STATUS", lamp);
|
|
|
+ (function (lampData) {
|
|
|
return setTimeout(() => {
|
|
|
if (state.lampSwitchStatus[lampData.id] && state.lampSwitchStatus[lampData.id].loading == true) {
|
|
|
lampData.status.loading = false
|