File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/app/core/article/file Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import { useTranslations } from "next-intl";
1515import useClipboardStore from "@/stores/clipboard" ;
1616import { PhotoProvider , PhotoView } from "react-photo-view" ;
1717import { convertImageByWorkspace } from "@/lib/utils" ;
18- import { appDataDir } from '@tauri-apps/api/path' ;
18+ import { appDataDir , join } from '@tauri-apps/api/path' ;
1919
2020export function FileItem ( { item } : { item : DirTree } ) {
2121 const [ isEditing , setIsEditing ] = useState ( item . isEditing )
@@ -292,7 +292,7 @@ export function FileItem({ item }: { item: DirTree }) {
292292 } else {
293293 // 默认工作区 - 使用 AppData 目录
294294 const appDir = await appDataDir ( )
295- open ( ` ${ appDir } /article ${ folderPath ? '/' + folderPath : '' } ` )
295+ open ( await join ( appDir , 'article' , folderPath ) )
296296 }
297297 }
298298
You can’t perform that action at this time.
0 commit comments