fix(clone): 修复会话页面产生的clone的问题

This commit is contained in:
ibuler
2020-11-18 10:26:42 +08:00
committed by 老广
parent affb0ec2bb
commit 266d107ffd

View File

@@ -46,10 +46,8 @@ export default {
},
iTableConfig() {
const config = deepmerge(this.tableConfig, { extraQuery: this.extraQuery })
let hasClone = _.get(config, 'columnsMeta.actions.formatterArgs.hasClone')
if (this.headerActions.hasCreate && hasClone == null) {
hasClone = true
}
let hasClone = _.get(config, 'columnsMeta.actions.formatterArgs.hasClone', null)
hasClone = !!(this.headerActions.hasCreate && hasClone == null)
_.set(config, 'columnsMeta.actions.formatterArgs.hasClone', hasClone)
this.$log.debug('ListTable: iTableConfig change', config)
return config