File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 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
360361function 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+
388396const CreateFolderDialogRef = ref ()
389397
390398function openCreateFolder() {
You can’t perform that action at this time.
0 commit comments