fix: path copy issue files tab (#6276)

This commit is contained in:
Calum H.
2026-06-02 04:19:05 +00:00
committed by GitHub
parent c3a58aba9e
commit f27691340a
3 changed files with 13 additions and 5 deletions
@@ -133,6 +133,7 @@ import {
} from '../composables/file-drag-state'
import { injectFileManager } from '../providers/file-manager'
import type { FileItem } from '../types'
import { joinDisplayPath } from '../utils'
const { formatMessage } = useVIntl()
const { addNotification } = injectNotificationManager()
@@ -204,8 +205,7 @@ const fileExtension = computed(() => getFileExtension(props.name))
const isZip = computed(() => fileExtension.value === 'zip')
function getFullPath() {
const basePath = ctx.basePath?.value
return basePath ? `${basePath}/${props.path}`.replace(/\/+/g, '/') : props.path
return joinDisplayPath(ctx.basePath?.value, props.path)
}
const menuOptions = computed(() => {