From 5157bdce2e41a3a548906eab9475caa39613940c Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 30 Nov 2023 09:51:25 +0700 Subject: [PATCH] fix: unintended import and format --- Services/client/src/components/FileItem.vue | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/Services/client/src/components/FileItem.vue b/Services/client/src/components/FileItem.vue index 0378203..8b6c086 100644 --- a/Services/client/src/components/FileItem.vue +++ b/Services/client/src/components/FileItem.vue @@ -10,19 +10,17 @@ import FolderForm from './FolderForm.vue' import UploadExistDialog from './UploadExistDialog.vue' import { useTreeDataStore } from '@/stores/tree-data' import { useFileInfoStore } from '@/stores/file-info-data' -import test from 'node:test' const props = withDefaults( defineProps<{ action: boolean; viewMode: 'view_list' | 'view_module' }>(), { action: false, - } + }, ) const DEPT_NAME = ['ตู้เอกสาร', 'ลิ้นชัก', 'แฟ้ม', 'แฟ้มย่อย'] as const const { getFileInfo, getFileNameFormat } = useFileInfoStore() -const { currentFolder, currentFile, currentDept, currentPath } = storeToRefs( - useTreeDataStore() -) +const { currentFolder, currentFile, currentDept, currentPath } = + storeToRefs(useTreeDataStore()) const { createFolder, editFolder, @@ -38,8 +36,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) @@ -114,7 +112,7 @@ function triggerFileEdit( keyword: string category: string }, - pathname: string + pathname: string, ) { fileFormState.value = true fileFormType.value = 'edit' @@ -138,7 +136,7 @@ async function submitFileForm( keyword: string category: string }, - force = false + force = false, ) { currentParam.value = value @@ -163,7 +161,7 @@ async function submitFileForm( keyword: value.keyword, category: value.category, }, - value.file + value.file, ) } fileFormData.value = {} @@ -311,7 +309,7 @@ async function submitFileForm( keyword: value.keyword.join(','), category: value.category.join(','), }, - value.pathname + value.pathname, ) " @delete="() => triggerFileDelete(value.pathname)"