Skip to content

Commit 19d15da

Browse files
fix: bug
1 parent 63eefa3 commit 19d15da

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ui/src/views/knowledge/index.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@
161161
:title="item.name"
162162
:description="item.desc || $t('common.noData')"
163163
class="cursor"
164+
@click="clickFolder(item)"
164165
>
165166
<template #icon>
166167
<el-avatar shape="square" :size="32" style="background: none">
@@ -358,6 +359,7 @@ const search_type_change = () => {
358359
}
359360
360361
function getList() {
362+
console.log(currentFolder.value?.id)
361363
const params = {
362364
folder_id: currentFolder.value?.id || localStorage.getItem('workspace_id'),
363365
[search_type.value]: search_form.value[search_type.value],
@@ -385,6 +387,12 @@ function folderClickHandel(row: any) {
385387
getList()
386388
}
387389
390+
function clickFolder(item: any) {
391+
currentFolder.value.id = item.id
392+
knowledgeList.value = []
393+
getList()
394+
}
395+
388396
const CreateFolderDialogRef = ref()
389397
390398
function openCreateFolder() {

0 commit comments

Comments
 (0)