mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-06 19:48:44 +00:00
fix: 修复 root 组织 下可以创建的问题
This commit is contained in:
parent
f6aab29ecc
commit
c94a451df9
@ -72,7 +72,7 @@ export default {
|
|||||||
title: this.$t('common.Create'),
|
title: this.$t('common.Create'),
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
has: this.hasCreate && !this.moreCreates,
|
has: this.hasCreate && !this.moreCreates,
|
||||||
can: true,
|
can: this.canCreate,
|
||||||
callback: this.handleCreate
|
callback: this.handleCreate
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -19,8 +19,7 @@ export default {
|
|||||||
if (canCreate === null && this.currentOrgIsRoot) {
|
if (canCreate === null && this.currentOrgIsRoot) {
|
||||||
_.set(attrs, 'header-actions.canCreate', false)
|
_.set(attrs, 'header-actions.canCreate', false)
|
||||||
}
|
}
|
||||||
// attrs.headerActions.can
|
this.$log.debug('List table Attrs: ', attrs)
|
||||||
// console.log()
|
|
||||||
return attrs
|
return attrs
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user