Skip to content

Commit 6342fd9

Browse files
committed
fix: update folder_id retrieval to use workspace_id from localStorage
1 parent e4e58bc commit 6342fd9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ui/src/views/knowledge/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ const search_type_change = () => {
354354
355355
function getList() {
356356
const params = {
357-
folder_id: currentFolder.value?.id || 'root',
357+
folder_id: currentFolder.value?.id || localStorage.getItem('workspace_id'),
358358
[search_type.value]: search_form.value[search_type.value],
359359
}
360360
KnowledgeApi.getKnowledgeList(paginationConfig, params, loading).then((res) => {

ui/src/views/tool/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ function openCreateDialog(data?: any) {
253253
254254
function getList() {
255255
const params = {
256-
folder_id: currentFolder.value?.id || 'root',
256+
folder_id: currentFolder.value?.id || localStorage.getItem('workspace_id'),
257257
scope: 'WORKSPACE',
258258
}
259259
ToolApi.getToolList(paginationConfig, params, loading).then((res) => {

0 commit comments

Comments
 (0)