Преглед изворни кода

fix: submit publishing failed

cannot go to the next step when multi-resolution
Casper Dai пре 3 година
родитељ
комит
2cf5d7fec4
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      src/views/screen/deploy/device/index.vue

+ 3 - 3
src/views/screen/deploy/device/index.vue

@@ -268,14 +268,14 @@ export default {
           '选择的设备分辨率不一致',
           { type: 'warning' }
         ).then(() => {
-          this.eventOptions = this.createEventOptions()
+          this.eventOptions = this.createEventOptions(PublishTargetType.EVENT)
           this.active += 1
         })
         return false
         // return this.onError('选择的设备分辨率不一致')
       }
       this.ratio = ratio
-      this.eventOptions = this.createEventOptions(PublishTargetType.EVENT, EventTarget.PROGRAM)
+      this.eventOptions = this.createEventOptions(PublishTargetType.EVENT)
       return true
     },
     onChangeType (type) {
@@ -314,7 +314,7 @@ export default {
           }
         ).then(
           () => publish(
-            this.eventOptions.type === PublishTargetType.EVENT && this.eventOptions.targetType === EventTarget.ASSETS
+            publishTarget.type === PublishTargetType.EVENT && publishTarget.detail.target.type === EventTarget.ASSETS
               ? PublishType.ASSET_TO_DEVICE
               : PublishType.PROGRAM_TO_DEVICE,
             this.selectedDevices.map(device => device.id),