Browse Source

fix(device): power status

Casper Dai 2 years ago
parent
commit
fef4939c96
1 changed files with 1 additions and 1 deletions
  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