update: แก้การแสดงประเภทของไฟล์
This commit is contained in:
parent
42da572b7c
commit
dc85980028
1 changed files with 1 additions and 1 deletions
|
|
@ -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 'ไม่ทราบประเภท'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue