mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 18:32:48 +00:00
refactor: update workspace_ids handling in API requests for consistency
This commit is contained in:
parent
60e3005aa9
commit
5f2bb37626
|
|
@ -193,6 +193,9 @@ function getList() {
|
|||
const params = {
|
||||
[search_type.value]: search_form.value[search_type.value],
|
||||
}
|
||||
if (workspaceArr.value.length > 0) {
|
||||
params.workspace_ids = JSON.stringify(workspaceArr.value)
|
||||
}
|
||||
KnowledgeResourceApi.getKnowledgeListPage(paginationConfig, params, loading).then((res: any) => {
|
||||
paginationConfig.total = res.data?.total
|
||||
knowledgeList.value = res.data?.records
|
||||
|
|
|
|||
|
|
@ -215,6 +215,9 @@ function getList() {
|
|||
const params = {
|
||||
[search_type.value]: search_form.value[search_type.value],
|
||||
}
|
||||
if (workspaceArr.value.length > 0) {
|
||||
params.workspace_ids = JSON.stringify(workspaceArr.value)
|
||||
}
|
||||
ToolResourceApi.getToolListPage(paginationConfig, params, loading).then((res) => {
|
||||
paginationConfig.total = res.data?.total
|
||||
toolList.value = res.data?.records
|
||||
|
|
|
|||
Loading…
Reference in New Issue