fix: 修复 root 组织 下可以创建的问题

This commit is contained in:
ibuler 2021-03-11 20:19:28 +08:00 committed by Jiangjie.Bai
parent f6aab29ecc
commit c94a451df9
2 changed files with 2 additions and 3 deletions

View File

@ -72,7 +72,7 @@ export default {
title: this.$t('common.Create'),
type: 'primary',
has: this.hasCreate && !this.moreCreates,
can: true,
can: this.canCreate,
callback: this.handleCreate
}
]

View File

@ -19,8 +19,7 @@ export default {
if (canCreate === null && this.currentOrgIsRoot) {
_.set(attrs, 'header-actions.canCreate', false)
}
// attrs.headerActions.can
// console.log()
this.$log.debug('List table Attrs: ', attrs)
return attrs
}
}