|
|
@@ -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),
|