|
|
|
@ -10,7 +10,7 @@ import sharePermission from './sharePermission.vue'; |
|
|
|
import spacePermission from './spacePermission.vue'; |
|
|
|
import { matterPage,matterInfo,matterTree,doFileUpload,matterPermit} from "@/api/doc/type" |
|
|
|
import { doAccessManage,getSpaceMatterList,doCreateSpaceDir,doDelSpaceMatter, |
|
|
|
doAiTraining ,spaceMatterRename} from "@/api/doc/space" |
|
|
|
doAiTraining,doAiDocDels,spaceMatterRename} from "@/api/doc/space" |
|
|
|
import { h } from 'vue' |
|
|
|
import { |
|
|
|
Delete, |
|
|
|
@ -159,6 +159,7 @@ function onDelMatter(row:matterInfo){ |
|
|
|
currentNode.value.uuid = row.puuid ?? "" |
|
|
|
onLoadMatterList() |
|
|
|
}) |
|
|
|
handleAiDelete(row) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
@ -530,6 +531,22 @@ function handleAiUpload(info:matterInfo){ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function handleAiDelete(info:matterInfo){ |
|
|
|
//只有当前路径是智能体,删除才会同步大模型 |
|
|
|
if (info.path?.startsWith(currentAgent.value.path)){ |
|
|
|
doAiDocDels(`/agents/${currentAgent.value.uuid}/deldoc`,{ |
|
|
|
"name":info.name, |
|
|
|
"path":info.path, |
|
|
|
}).then(resp=>{ |
|
|
|
ElMessage({ |
|
|
|
message: '已成功删除', |
|
|
|
type: 'error', |
|
|
|
plain: true, |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//------------------------------------------------- |
|
|
|
|
|
|
|
//-------------------edit & preive file for space--------------------- |
|
|
|
|