2 Commits 8274fbad6c ... a3c0eb0ccc

Author SHA1 Message Date
  zengminguo a3c0eb0ccc light_state格式不对问题 2 years ago
  zengminguo 841ee0683f 修改light_state格式不对的问题 2 years ago
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/User.js

+ 2 - 3
src/User.js

@@ -279,7 +279,6 @@ export default class User {
         //   // socket.emit('PUSH', msg)
         // }
         
-
         // TODO 后续打开 加上device_state全局广播逻辑
         // req.data = JSON.stringify(datas)
         if (cmd === 'device_state' || cmd === 'light_state' || cmd === 'tof_data') {
@@ -288,8 +287,8 @@ export default class User {
           console.log(req)
           this.socket.emit('PUSH', req)
         }
-	if (cmd === 'load_history_completed') {
-	  console.log(req)
+	      if (cmd === 'load_history_completed') {
+	        console.log(req)
           this.socket.emit('PUSH', req)
         }
         Pusher.push(socket, req)