소스 검색

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