mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-08 22:39:36 +08:00
fix: update file path resolution in new Electron
This commit is contained in:
parent
2686553c19
commit
a3a3045b1a
@ -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