diff --git a/Services/client/src/modules/01_user/components/FileDownload.vue b/Services/client/src/modules/01_user/components/FileDownload.vue index ee5b1af..e616333 100644 --- a/Services/client/src/modules/01_user/components/FileDownload.vue +++ b/Services/client/src/modules/01_user/components/FileDownload.vue @@ -9,13 +9,14 @@ import { useFileInfoStore } from '@/stores/file-info-data' import FileIcon from '@/components/FileIcon.vue' const { isFilePreview, fileInfo } = storeToRefs(useFileInfoStore()) -const { getType, getFormatDate, getSize, getFileNameFormat } = useFileInfoStore() +const { getType, getFormatDate, getSize, getFileNameFormat } = + useFileInfoStore() async function downloadSubmit(path: any) { const [cabinet, drawer, folder, file] = path.split('/') const formatPath = `/cabinet/${cabinet}/drawer/${drawer}/folder/${folder}/file/${file}` const res = await axiosClient.get( - `${import.meta.env.VITE_API_ENDPOINT}${formatPath}` + `${import.meta.env.VITE_API_ENDPOINT}${formatPath}`, ) await axios .get(res.data.download, { @@ -36,9 +37,9 @@ async function downloadSubmit(path: any) {