mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
fix: bug
This commit is contained in:
parent
63eefa3ffa
commit
19d15da910
|
|
@ -161,6 +161,7 @@
|
|||
:title="item.name"
|
||||
:description="item.desc || $t('common.noData')"
|
||||
class="cursor"
|
||||
@click="clickFolder(item)"
|
||||
>
|
||||
<template #icon>
|
||||
<el-avatar shape="square" :size="32" style="background: none">
|
||||
|
|
@ -358,6 +359,7 @@ const search_type_change = () => {
|
|||
}
|
||||
|
||||
function getList() {
|
||||
console.log(currentFolder.value?.id)
|
||||
const params = {
|
||||
folder_id: currentFolder.value?.id || localStorage.getItem('workspace_id'),
|
||||
[search_type.value]: search_form.value[search_type.value],
|
||||
|
|
@ -385,6 +387,12 @@ function folderClickHandel(row: any) {
|
|||
getList()
|
||||
}
|
||||
|
||||
function clickFolder(item: any) {
|
||||
currentFolder.value.id = item.id
|
||||
knowledgeList.value = []
|
||||
getList()
|
||||
}
|
||||
|
||||
const CreateFolderDialogRef = ref()
|
||||
|
||||
function openCreateFolder() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue