fix: update file path resolution in new Electron

This commit is contained in:
suyao 2025-05-19 22:45:59 +08:00 committed by 亢奋猫
parent 582427663f
commit a95ace3dc5

View File

@ -93,7 +93,7 @@ const KnowledgeContent: FC<KnowledgeContentProps> = ({ selectedBase }) => {
.map((file) => ({ .map((file) => ({
id: file.name, id: file.name,
name: file.name, name: file.name,
path: file.path, path: window.api.file.getPathForFile(file),
size: file.size, size: file.size,
ext: `.${file.name.split('.').pop()}`.toLowerCase(), ext: `.${file.name.split('.').pop()}`.toLowerCase(),
count: 1, count: 1,