From a10e51d72b4924da6bb3f405d9ddd6725f2d6dd9 Mon Sep 17 00:00:00 2001 From: somnetsak123 Date: Thu, 7 Dec 2023 14:33:46 +0700 Subject: [PATCH] refactor: add button FileCreate and FolderCreate --- Services/client/src/components/FileItem.vue | 40 ++++++++++++++++++--- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/Services/client/src/components/FileItem.vue b/Services/client/src/components/FileItem.vue index 93c7abe..56f39cd 100644 --- a/Services/client/src/components/FileItem.vue +++ b/Services/client/src/components/FileItem.vue @@ -17,7 +17,7 @@ const props = withDefaults( action: false, }, ) -const DEPT_NAME = ['ตู้เอกสาร', 'ลิ้นชัก', 'แฟ้ม', 'แฟ้มย่อย'] as const +const DEPT_NAME = ['ตู้เอกสาร', 'ลิ้นชัก', 'แฟ้ม', 'แฟ้ม'] as const const { getFileInfo } = useFileInfoStore() const { currentFolder, currentFile, currentDept, currentPath } = storeToRefs(useTreeDataStore()) @@ -183,7 +183,22 @@ async function submitFileForm(