mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-05 11:16:35 +00:00
fix: 修复 root 组织 下可以创建的问题
This commit is contained in:
parent
f6aab29ecc
commit
c94a451df9
@ -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
|
||||
}
|
||||
]
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user