Skip to content

Commit 6db419b

Browse files
committed
fix(Permission configuration): Unable to add restricted users
1 parent 11b99be commit 6db419b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

frontend/src/views/system/permission/SelectPermission.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ const open = async (user: any) => {
159159
checkTableList.value = []
160160
isIndeterminate.value = false
161161
const systemWorkspaceList = await workspaceUserList({}, 1, 1000)
162-
workspace.value = systemWorkspaceList.items as any
162+
workspace.value = JSON.parse(JSON.stringify(systemWorkspaceList.items as any))
163163
if (user?.length) {
164164
checkedWorkspace.value = workspace.value.filter((ele: any) => user.includes(ele.id))
165165
checkTableList.value = [...checkedWorkspace.value]

frontend/src/views/system/workspace/AuthorizedWorkspaceDialog.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ const open = async (id: any) => {
187187
checkAll.value = false
188188
isIndeterminate.value = false
189189
const systemWorkspaceList = await workspaceOptionUserList({ oid }, 1, 1000)
190-
workspace.value = systemWorkspaceList.items.filter((ele: any) => +ele.id !== 1) as any
190+
workspace.value = JSON.parse(
191+
JSON.stringify(systemWorkspaceList.items.filter((ele: any) => +ele.id !== 1) as any)
192+
)
191193
loading.value = false
192194
centerDialogVisible.value = true
193195
}

0 commit comments

Comments
 (0)