This commit is contained in:
wangdan-fit2cloud 2025-06-16 20:45:33 +08:00
parent 63eefa3ffa
commit 19d15da910

View File

@ -161,6 +161,7 @@
:title="item.name" :title="item.name"
:description="item.desc || $t('common.noData')" :description="item.desc || $t('common.noData')"
class="cursor" class="cursor"
@click="clickFolder(item)"
> >
<template #icon> <template #icon>
<el-avatar shape="square" :size="32" style="background: none"> <el-avatar shape="square" :size="32" style="background: none">
@ -358,6 +359,7 @@ const search_type_change = () => {
} }
function getList() { function getList() {
console.log(currentFolder.value?.id)
const params = { const params = {
folder_id: currentFolder.value?.id || localStorage.getItem('workspace_id'), 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],
@ -385,6 +387,12 @@ function folderClickHandel(row: any) {
getList() getList()
} }
function clickFolder(item: any) {
currentFolder.value.id = item.id
knowledgeList.value = []
getList()
}
const CreateFolderDialogRef = ref() const CreateFolderDialogRef = ref()
function openCreateFolder() { function openCreateFolder() {