(key:string)
| 18 | |
| 19 | // 获取iconImgUrl |
| 20 | const getIconEle = (key:string) => { |
| 21 | const imgUrl = new URL(`/src/assets/matchImage/${key}.png`, import.meta.url).href |
| 22 | return [iconDict[key],imgUrl] |
| 23 | } |
| 24 | export const getIconImg = (iconList:string[],isMvp:boolean,isWin:boolean) => { |
| 25 | const iconImgEle = iconList.map((icon) => { |
| 26 | return getIconEle(icon) |