Skip to content

Commit 8d31987

Browse files
committed
Fix image URL in JS
1 parent 95241f7 commit 8d31987

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

api/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def marker_gl_sprite_2x_png():
145145

146146
@app.get("/0.3/assets/markers/{filename:path}.png")
147147
def marker(filename):
148-
file_path = f"api/markers/{filename}.png"
148+
file_path = f"api/assets/markers/{filename}.png"
149149
if not os.path.isfile(file_path):
150-
file_path = "api/markers/marker-b-0.png"
150+
file_path = "api/assets/markers/marker-b-0.png"
151151
return Response(open(file_path, "rb").read())

web/src/pages/issue/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export default VueParent.extend({
157157
158158
const favicon = document.getElementById('favicon') as HTMLAnchorElement
159159
favicon.href =
160-
API_URL + `/api/0.3/markers/marker-l-${this.marker.item}.png`
160+
API_URL + `/api/0.3/assets/markers/marker-l-${this.marker.item}.png`
161161
}
162162
)
163163
},

web/src/pages/issues/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@
368368
</td>
369369
<td>
370370
<img
371-
:src="api_url + `/api/0.3/markers/marker-l-${res.item}.png`"
371+
:src="api_url + `/api/0.3/assets/markers/marker-l-${res.item}.png`"
372372
:alt="res.item"
373373
/>
374374
<router-link
@@ -598,7 +598,7 @@ export default VueParent.extend({
598598
if (res) {
599599
title += ' - ' + res.menu.auto
600600
const favicon = document.getElementById('favicon')
601-
this.favicon = API_URL + `/api/0.3/markers/marker-l-${this.item}.png`
601+
this.favicon = API_URL + `/api/0.3/assets/markers/marker-l-${this.item}.png`
602602
favicon.href = this.favicon
603603
}
604604

0 commit comments

Comments
 (0)