From dc859800285564ea9e55694da2dced039a5c0413 Mon Sep 17 00:00:00 2001 From: puri-ph4tt Date: Fri, 12 Jan 2024 10:28:40 +0700 Subject: [PATCH] =?UTF-8?q?update:=20=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=E0=B9=81=E0=B8=AA=E0=B8=94=E0=B8=87=E0=B8=9B?= =?UTF-8?q?=E0=B8=A3=E0=B8=B0=E0=B9=80=E0=B8=A0=E0=B8=97=E0=B8=82=E0=B8=AD?= =?UTF-8?q?=E0=B8=87=E0=B9=84=E0=B8=9F=E0=B8=A5=E0=B9=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Services/client/src/stores/file-info-data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/client/src/stores/file-info-data.ts b/Services/client/src/stores/file-info-data.ts index d13bc2f..76965ab 100644 --- a/Services/client/src/stores/file-info-data.ts +++ b/Services/client/src/stores/file-info-data.ts @@ -69,7 +69,7 @@ export const useFileInfoStore = defineStore('info', () => { if (extension) return extension if (fileName && fileName.includes('.')) { - return fileName.substring(fileName.lastIndexOf('.')) + return fileName.substring(fileName.lastIndexOf('.') + 1) } return 'ไม่ทราบประเภท'