Procházet zdrojové kódy

fix(device): power status

Casper Dai před 2 roky
rodič
revize
fef4939c96
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/views/dashboard/components/Device.vue

+ 1 - 1
src/views/dashboard/components/Device.vue

@@ -187,7 +187,7 @@ export default {
       return !this.hasPower || this.hasPowerRealStatus
     },
     isPowerOpened () {
-      return this.hasPowerRealStatus && this.powerStatus === Status.OK && this.switchStatus !== Power.OFF
+      return this.hasPowerStatus && (this.powerStatus === Status.NONE || this.powerStatus === Status.OK && this.switchStatus !== Power.OFF)
     },
     isRealOnline () {
       return this.isOnline && this.isPowerOpened