feat: 接入文档权限批量接口
This commit is contained in:
+5
-1
@@ -84,7 +84,11 @@ function deletePermission(permissionId: string | undefined) {
|
||||
}
|
||||
}
|
||||
|
||||
function formatSubject(subjectType: PermissionSubjectOption['type'], subjectId: string) {
|
||||
function formatSubject(subjectType: PermissionSubjectOption['type'], subjectId: string | null) {
|
||||
if (!subjectId) {
|
||||
return '系统默认继承规则'
|
||||
}
|
||||
|
||||
const subject = props.subjects.find((item) => item.type === subjectType && item.id === subjectId)
|
||||
return subject?.label ?? subjectId
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user