diff --git a/Services/client/src/components/FileItem.vue b/Services/client/src/components/FileItem.vue index 128d41e..7eafdf0 100644 --- a/Services/client/src/components/FileItem.vue +++ b/Services/client/src/components/FileItem.vue @@ -19,9 +19,8 @@ const props = withDefaults( ) const DEPT_NAME = ['ตู้เอกสาร', 'ลิ้นชัก', 'แฟ้ม', 'แฟ้มย่อย'] as const const { getFileInfo } = useFileInfoStore() -const { currentFolder, currentFile, currentDept, currentPath } = storeToRefs( - useTreeDataStore() -) +const { currentFolder, currentFile, currentDept, currentPath } = + storeToRefs(useTreeDataStore()) const { createFolder, editFolder, @@ -38,8 +37,8 @@ const currentIcon = computed(() => currentDept.value === 0 ? 'mdi-file-cabinet' : currentDept.value === 1 - ? 'inbox' - : 'o_folder_open', + ? 'inbox' + : 'o_folder_open', ) const dialogDeleteState = ref(false) @@ -184,7 +183,10 @@ async function submitFileForm( {{ DEPT_NAME[currentDept] }}
-
+
@@ -289,7 +291,7 @@ async function submitFileForm( เอกสาร
-
+
defineEmits(['edit', 'delete']) + +const props = + defineProps<{ + nameId: string + + }>() + +