Ver Fonte

fix: no waiting state during screenshot

daigang há 3 anos atrás
pai
commit
1f57bfbd67
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/views/dashboard/components/Device.vue

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

@@ -187,7 +187,7 @@ export default {
       }
     },
     screenshot () {
-      publish(`${this.device.productId}/${this.device.id}/screenshot/ask`, JSON.stringify({ timestamp: Date.now() }))('screenshot').then(() => {
+      publish(`${this.device.productId}/${this.device.id}/screenshot/ask`, JSON.stringify({ timestamp: Date.now() })).then(() => {
         this.isShotting = true
         this.shot = null
       }, () => {