فهرست منبع

fix: incorrect reset operation

changes in visibility of component DeviceCard
Casper Dai 2 سال پیش
والد
کامیت
d60e513e1d
1فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 5 5
      src/views/dashboard/components/DeviceCard.vue

+ 5 - 5
src/views/dashboard/components/DeviceCard.vue

@@ -259,11 +259,6 @@ export default {
       }
       this.getTimeline(true)
     },
-    isInView (val) {
-      if (val) {
-        this.onReset()
-      }
-    },
     isOnline: {
       handler (val) {
         if (val) {
@@ -274,6 +269,11 @@ export default {
       },
       immediate: true
     },
+    isInView (val) {
+      if (!val) {
+        this.onReset()
+      }
+    },
     isRealOnline (val) {
       if (!val) {
         this.onReset(true)