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

@ -14,7 +14,7 @@ import FolderForm from './FolderForm.vue'
const DEPT_NAME = ['ตู้เอกสาร', 'ลิ้นชัก', 'แฟ้ม', 'แฟ้มย่อย'] as const
const { isPreview } = storeToRefs(useFileInfoStore())
const { isFilePreview } = storeToRefs(useFileInfoStore())
const { isSearch } = storeToRefs(useSearchDataStore())
const { data, currentDept } = storeToRefs(useTreeDataStore())
const { createFolder, getCabinet, gotoParent } = useTreeDataStore()
@ -89,10 +89,10 @@ onMounted(getCabinet)
</div>
</div>
<div class="col">
<file-download v-if="isPreview === true" />
<file-download v-if="isFilePreview === true" />
<div
class="bg-white rounded-borders shadow-5 relative"
v-if="isPreview === false"
v-if="isFilePreview === false"
>
<search-bar v-if="mode === 'user'" />
<div class="bg-white q-pa-md">