浏览代码

fix: store修改

anxiaoxia 6 天之前
父节点
当前提交
97543e4bc7
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 二进制
      dist.zip
  2. 2 3
      src/store/modules/taiguv1/index.js

二进制
dist.zip


+ 2 - 3
src/store/modules/taiguv1/index.js

@@ -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