Преглед изворни кода

设置教具20秒后连接超时

chaooo пре 1 година
родитељ
комит
febcaded2a
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/components/connection/index.vue

+ 2 - 2
src/components/connection/index.vue

@@ -117,12 +117,12 @@ export default {
       if ($this.toy_item && $this.toy_item.id > 0) {
         $this.setToyStatus(1);
         $this.$connection.sendToyConnection($this.toy_item);
-        // 设置10秒后,若还是在连接中,设置连接失败
+        // 设置20秒后,若还是在连接中,设置连接失败
         setTimeout(() => {
           if ($this.device_status*1 === 2 && $this.connect_toy === 1) {
             $this.setToyStatus(3);
           }
-        }, 10000);
+        }, 20000);
       }
     },
     /**