Forráskód Böngészése

fix: topic for closing the screen

Casper Dai 3 éve
szülő
commit
191764bc53

+ 1 - 1
src/views/device/detail/components/DeviceInvoke/mixins/switch-task.js

@@ -50,7 +50,7 @@ export default {
         `立即${open ? '开机' : '关机'}?`,
         { type: 'warning' }
       ).then(() => {
-        this.sendTopic(open ? 'bootDevice' : 'shutdownDevice')
+        this.sendTopic(open ? this.openFunctionKey : this.closeFunctionKey)
       })
     }
   }