chore: file to files

This commit is contained in:
Joel
2026-03-26 18:07:14 +08:00
parent 4169f0e5d0
commit 3cb7a5b613
7 changed files with 9 additions and 8 deletions

View File

@ -82,7 +82,7 @@ const FilePreviewPanel = ({ resourceId, currentNode, className, style, onClose }
if (!canOpenInEditor)
return
const nextUrl = new URL(window.location.href)
nextUrl.searchParams.set('view', 'file')
nextUrl.searchParams.set('view', 'files')
nextUrl.searchParams.set('fileId', resourceId)
window.open(nextUrl.toString(), '_blank', 'noopener,noreferrer')
}, [canOpenInEditor, resourceId])