瀏覽代碼

fix: topic for closing the screen

Casper Dai 3 年之前
父節點
當前提交
191764bc53
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/device/detail/components/DeviceInvoke/mixins/switch-task.js

+ 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)
       })
     }
   }