mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
fix(clone): 修复会话页面产生的clone的问题
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user