feat: update workspace authorization models to use workspace_id instead of workspace

This commit is contained in:
CaptainB 2025-06-26 12:29:26 +08:00
parent 183d6c74d5
commit 4320270857

View File

@ -144,6 +144,8 @@ const open = ({ id }: any, type = 'Knowledge') => {
.then((res: any) => {
auth_list = (res.data || {}).auth_list || []
un_auth_list = (res.data || {}).un_auth_list || []
// auth_list None,
auth_list = auth_list.filter((ele) => ele.workspace_id !== 'None')
workspace.value = [
...un_auth_list,
...auth_list.map((ele) => ({ id: ele.workspace_id, name: ele.name })),