mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-09-05 15:37:21 +08:00
🔨 Refactor: compress all assets image to improve loading speed
This commit is contained in:
@@ -73,7 +73,7 @@ export function formatLink (url: string, fileName: string, type: string, format?
|
||||
|
||||
export function getFileIconPath (fileName: string) {
|
||||
const ext = path.extname(fileName).slice(1)
|
||||
return availableIconList.includes(ext) ? `${ext}.png` : 'unknown.png'
|
||||
return availableIconList.includes(ext) ? `${ext}.webp` : 'unknown.webp'
|
||||
}
|
||||
|
||||
export function formatFileSize (size: number) {
|
||||
|
||||
Reference in New Issue
Block a user