Skip to content

Commit

Permalink
fix: zip Icon missing (#2198)
Browse files Browse the repository at this point in the history
Co-authored-by: wangdan-fit2cloud <dan.wang@fit2cloud.com>
  • Loading branch information
shaohuzhang1 and wangdan-fit2cloud authored Feb 10, 2025
1 parent 2a316bc commit d6d8a9f
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 1 deletion.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
6 changes: 6 additions & 0 deletions ui/src/assets/fileType/zip-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ui/src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function getImgUrl(name: string) {
const list = Object.values(typeList).flat()

const type = list.includes(fileType(name).toLowerCase()) ? fileType(name).toLowerCase() : 'unknow'
return new URL(`../assets/${type}-icon.svg`, import.meta.url).href
return new URL(`../assets/fileType/${type}-icon.svg`, import.meta.url).href
}
// 是否是白名单后缀
export function isRightType(name: string, type: string) {
Expand Down

0 comments on commit d6d8a9f

Please sign in to comment.