fix: isPreview 2 isFilePreview & getFileNameFormat
This commit is contained in:
parent
3e570b71aa
commit
bc0212b0f1
7 changed files with 40 additions and 43 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue