fix(Permission configuration): Unable to add restricted users

This commit is contained in:
dataeaseShu
2025-12-04 09:52:56 +08:00
committed by dataeaseShu
parent 11b99be1cf
commit 6db419b6b9
2 changed files with 4 additions and 2 deletions
@@ -159,7 +159,7 @@ const open = async (user: any) => {
checkTableList.value = []
isIndeterminate.value = false
const systemWorkspaceList = await workspaceUserList({}, 1, 1000)
workspace.value = systemWorkspaceList.items as any
workspace.value = JSON.parse(JSON.stringify(systemWorkspaceList.items as any))
if (user?.length) {
checkedWorkspace.value = workspace.value.filter((ele: any) => user.includes(ele.id))
checkTableList.value = [...checkedWorkspace.value]
@@ -187,7 +187,9 @@ const open = async (id: any) => {
checkAll.value = false
isIndeterminate.value = false
const systemWorkspaceList = await workspaceOptionUserList({ oid }, 1, 1000)
workspace.value = systemWorkspaceList.items.filter((ele: any) => +ele.id !== 1) as any
workspace.value = JSON.parse(
JSON.stringify(systemWorkspaceList.items.filter((ele: any) => +ele.id !== 1) as any)
)
loading.value = false
centerDialogVisible.value = true
}