Skip to content

Commit 4320270

Browse files
committed
feat: update workspace authorization models to use workspace_id instead of workspace
1 parent 183d6c7 commit 4320270

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui/src/views/system-shared/AuthorizedWorkspaceDialog.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ const open = ({ id }: any, type = 'Knowledge') => {
144144
.then((res: any) => {
145145
auth_list = (res.data || {}).auth_list || []
146146
un_auth_list = (res.data || {}).un_auth_list || []
147+
// auth_list 中None表示没选中工作空间, 黑名单中表示所有工作空间都可用,白名单表示所有工作空间都不可用
148+
auth_list = auth_list.filter((ele) => ele.workspace_id !== 'None')
147149
workspace.value = [
148150
...un_auth_list,
149151
...auth_list.map((ele) => ({ id: ele.workspace_id, name: ele.name })),

0 commit comments

Comments
 (0)