fix:修改 endpoint 批量新增的相关问题

This commit is contained in:
zhangyu
2021-08-17 10:25:53 +08:00
parent 5e781c1ad3
commit 9428be3bdb
2 changed files with 20 additions and 6 deletions

View File

@@ -851,15 +851,16 @@ export default {
})
} else if (this.optionType === 'batchAdd') {
this.prevent_opt.save = true
this.$emit('close', true, this.editEndpoint, false)
params.configs = JSON.parse(params.configs)
this.$emit('close', true, params, false)
this.prevent_opt.save = false
} else if (this.optionType === 'batch') {
this.prevent_opt.save = true
if (this.editEndpoint.assetId) {
this.$emit('close', true, this.editEndpoint, false)
this.$emit('close', true, params, false)
this.prevent_opt.save = false
} else {
this.$emit('close', true, this.editEndpoint, true)
this.$emit('close', true, params, true)
this.prevent_opt.save = false
}
} else if (this.optionType === 'edit') {