Browse Source

fix:空调接口自动刷新

chenzhen2 1 năm trước cách đây
mục cha
commit
d6334a24b8
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      src/views/envmonitor/components/Air/manualIndex.vue

+ 5 - 1
src/views/envmonitor/components/Air/manualIndex.vue

@@ -978,7 +978,11 @@ export default defineComponent({
               proxyData.getAirInfoToTimer();
             }
           })
-          .catch(() => {});
+          .catch(() => {
+            if (isAddTimer == 0) {
+              proxyData.getAirInfoToTimer();
+            }
+          });
       },
     });
     watch(