moved images from assets to public
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good
This commit is contained in:
@@ -20,7 +20,7 @@ export const DisplayRank = (rankNr = 0) => {
|
||||
[17, 'Supreme Master First Class'],
|
||||
[18, 'Global Elite'],
|
||||
])
|
||||
return [require(`@/assets/images/rank_icons/skillgroup${rankNr}.svg`), rankMap.get(rankNr)]
|
||||
return [`/images/rank_icons/skillgroup${rankNr}.svg`, rankMap.get(rankNr)]
|
||||
}
|
||||
|
||||
export const DisplayWeapon = (weaponId) => {
|
||||
@@ -64,7 +64,7 @@ export const DisplayWeapon = (weaponId) => {
|
||||
[311, 'g3sg1'],
|
||||
])
|
||||
if (wepaonMap.get(weaponId)){
|
||||
return require(`@/assets/images/weapons/${wepaonMap.get(weaponId)}.svg`)
|
||||
return `/images/weapons/${wepaonMap.get(weaponId)}.svg`
|
||||
} else {
|
||||
weaponId
|
||||
}
|
||||
@@ -81,9 +81,9 @@ export const LoadImage = (mapName) => {
|
||||
}
|
||||
|
||||
img.onerror = function () {
|
||||
img.src = require(`@/assets/images/map_screenshots/${mapName}.jpg`)
|
||||
img.onerror = null
|
||||
img.src = `/images/map_screenshots/${mapName}.jpg`
|
||||
img.onerror = null
|
||||
}
|
||||
|
||||
img.src = require(`@/assets/images/map_screenshots/${mapName}.webp`)
|
||||
img.src = `/images/map_screenshots/${mapName}.webp`
|
||||
}
|
||||
|
Reference in New Issue
Block a user