fix: update folder_id retrieval to use workspace_id from localStorage
parent
e4e58bc3bd
commit
6342fd97da
|
|
@ -354,7 +354,7 @@ const search_type_change = () => {
|
||||||
|
|
||||||
function getList() {
|
function getList() {
|
||||||
const params = {
|
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],
|
[search_type.value]: search_form.value[search_type.value],
|
||||||
}
|
}
|
||||||
KnowledgeApi.getKnowledgeList(paginationConfig, params, loading).then((res) => {
|
KnowledgeApi.getKnowledgeList(paginationConfig, params, loading).then((res) => {
|
||||||
|
|
|
||||||
|
|
@ -253,7 +253,7 @@ function openCreateDialog(data?: any) {
|
||||||
|
|
||||||
function getList() {
|
function getList() {
|
||||||
const params = {
|
const params = {
|
||||||
folder_id: currentFolder.value?.id || 'root',
|
folder_id: currentFolder.value?.id || localStorage.getItem('workspace_id'),
|
||||||
scope: 'WORKSPACE',
|
scope: 'WORKSPACE',
|
||||||
}
|
}
|
||||||
ToolApi.getToolList(paginationConfig, params, loading).then((res) => {
|
ToolApi.getToolList(paginationConfig, params, loading).then((res) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue