fix: 이미지 경로에 빈칸이 있는 경우

This commit is contained in:
2024-12-20 15:50:38 +00:00
parent 7b5613d032
commit b472440ec1
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
<div <div
class="general-icon" class="general-icon"
:style="{ :style="{
backgroundImage: `url(${iconPath})`, backgroundImage: `url('${iconPath}')`,
}" }"
></div> ></div>
@@ -83,7 +83,7 @@
<div <div
class="general-crew-type-icon" class="general-crew-type-icon"
:style="{ :style="{
backgroundImage: `url(${imagePath}/crewtype${general.crewtype}.png)`, backgroundImage: `url('${imagePath}/crewtype${general.crewtype}.png')`,
}" }"
></div> ></div>
+1 -1
View File
@@ -3,7 +3,7 @@
<div <div
class="general-icon" class="general-icon"
:style="{ :style="{
backgroundImage: `url(${iconPath})`, backgroundImage: `url('${iconPath}')`,
}" }"
></div> ></div>
+1 -1
View File
@@ -9,7 +9,7 @@
v-if="city.color" v-if="city.color"
:class="`city_bg b${city.color.substring(1)}`" :class="`city_bg b${city.color.substring(1)}`"
:style="{ :style="{
backgroundImage: `url(${imagePath}/b${city.color.substring(1).toUpperCase()}.png)`, backgroundImage: `url('${imagePath}/b${city.color.substring(1).toUpperCase()}.png')`,
}" }"
></div> ></div>
+2 -2
View File
@@ -18,7 +18,7 @@
left: '0', left: '0',
width: '100%', width: '100%',
height: `${props.height}px`, height: `${props.height}px`,
backgroundImage: `url(${imagePath}/pr${props.height - 2}.gif)`, backgroundImage: `url('${imagePath}/pr${props.height - 2}.gif')`,
backgroundRepeat: 'repeat-x', backgroundRepeat: 'repeat-x',
backgroundPosition: 'center', backgroundPosition: 'center',
}" }"
@@ -30,7 +30,7 @@
left: '0', left: '0',
width: `${clamp(props.percent, 0, 100)}%`, width: `${clamp(props.percent, 0, 100)}%`,
height: `${props.height}px`, height: `${props.height}px`,
backgroundImage: `url(${imagePath}/pb${props.height - 2}.gif)`, backgroundImage: `url('${imagePath}/pb${props.height - 2}.gif')`,
backgroundRepeat: 'repeat-x', backgroundRepeat: 'repeat-x',
backgroundPosition: 'left center', backgroundPosition: 'left center',