fix image path

This commit is contained in:
2023-05-05 20:45:29 +02:00
parent 2d0d9e3a88
commit fdcfff2554
+6 -2
View File
@@ -3,7 +3,7 @@
<nav>
<!-- <div class="navbar-element">hamburger</div> -->
<div class="navbar-logo"><a href="https://github.com/Legonzaur/Tone_WebClient" target="_blank"><img src="/tone_icon.png"/></a></div>
<div class="navbar-logo"><a href="https://github.com/Legonzaur/Tone_WebClient" target="_blank"><img :src="`${publicPath}tone_icon.png`"/></a></div>
<div class="navbar-element github-link"><a href="https://github.com/Legonzaur/Tone_WebClient" target="_blank">Github</a></div>
<div class="navbar-element github-link"><a
href="https://github.com/Legonzaur/ToneAPI_servermod" target="_blank">Northstar&nbsp;Server&nbsp;Mod</a></div>
@@ -21,7 +21,11 @@
import { defineComponent } from 'vue'
export default defineComponent({
data () {
return {
publicPath: process.env.BASE_URL
}
}
})
</script>