mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-23 01:50:13 +08:00
fix: update file path resolution in new Electron
This commit is contained in:
parent
582427663f
commit
a95ace3dc5
@ -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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user