Przeglądaj źródła

fix: no waiting state during screenshot

daigang 3 lat temu
rodzic
commit
1f57bfbd67
1 zmienionych plików z 1 dodań i 1 usunięć
  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
       }, () => {