fix: update folder_id retrieval to use workspace_id from localStorage

This commit is contained in:
CaptainB 2025-06-12 14:24:45 +08:00
parent e4e58bc3bd
commit 6342fd97da
2 changed files with 2 additions and 2 deletions

View File

@ -354,7 +354,7 @@ const search_type_change = () => {
function getList() {
const params = {
folder_id: currentFolder.value?.id || 'root',
folder_id: currentFolder.value?.id || localStorage.getItem('workspace_id'),
[search_type.value]: search_form.value[search_type.value],
}
KnowledgeApi.getKnowledgeList(paginationConfig, params, loading).then((res) => {

View File

@ -253,7 +253,7 @@ function openCreateDialog(data?: any) {
function getList() {
const params = {
folder_id: currentFolder.value?.id || 'root',
folder_id: currentFolder.value?.id || localStorage.getItem('workspace_id'),
scope: 'WORKSPACE',
}
ToolApi.getToolList(paginationConfig, params, loading).then((res) => {