mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:02:46 +00:00
fix: update folder_id retrieval to use workspace_id from localStorage
This commit is contained in:
parent
e4e58bc3bd
commit
6342fd97da
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue