diff --git a/Services/client/src/components/FileItem.vue b/Services/client/src/components/FileItem.vue index ffe8b71..127290a 100644 --- a/Services/client/src/components/FileItem.vue +++ b/Services/client/src/components/FileItem.vue @@ -4,7 +4,10 @@ import { storeToRefs } from 'pinia' import FileItemAction from '@/components/FileItemAction.vue' import { useTreeDataStore } from '@/stores/tree-data' +import { useFileInfoStore } from '@/stores/file-info-data' +const { isPreview } = storeToRefs(useFileInfoStore()) +const { getFileInfo } = useFileInfoStore() const DEPT_NAME = ['ตู้เอกสาร', 'ลิ้นชัก', 'แฟ้ม', 'แฟ้มย่อย'] const { currentFolder, currentFile, currentDept } = storeToRefs( @@ -113,9 +116,21 @@ const props = withDefaults(