From 266d107ffd6aaa6c39cd3243527ea19e5a78e25b Mon Sep 17 00:00:00 2001 From: ibuler Date: Wed, 18 Nov 2020 10:26:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(clone):=20=E4=BF=AE=E5=A4=8D=E4=BC=9A?= =?UTF-8?q?=E8=AF=9D=E9=A1=B5=E9=9D=A2=E4=BA=A7=E7=94=9F=E7=9A=84clone?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ListTable/index.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/ListTable/index.vue b/src/components/ListTable/index.vue index 4f07e6d59..b6c46c8ce 100644 --- a/src/components/ListTable/index.vue +++ b/src/components/ListTable/index.vue @@ -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