fix: isPreview 2 isFilePreview & getFileNameFormat

This commit is contained in:
puri-ph4tt 2023-11-29 11:16:50 +07:00 committed by Methapon2001
parent 3e570b71aa
commit bc0212b0f1
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
7 changed files with 40 additions and 43 deletions

View file

@ -5,7 +5,6 @@ import { useFileInfoStore } from '@/stores/file-info-data'
import FileIcon from '@/components/FileIcon.vue'
const { foundFile } = storeToRefs(useSearchDataStore())
const { isPreview } = storeToRefs(useFileInfoStore())
const { getFileInfo } = useFileInfoStore()
</script>
@ -23,7 +22,6 @@ const { getFileInfo } = useFileInfoStore()
@click="
() => {
getFileInfo(foundFile[index])
isPreview = true
}
"
>