This commit is contained in:
2025-08-08 17:44:36 +08:00
parent 7367906a45
commit af93101ff2
23 changed files with 926 additions and 1650 deletions

View File

@@ -106,7 +106,7 @@ export default {
}
},
computed: {
...mapGetters(['carPosition'])
...mapGetters(['serverUrl', 'carPosition'])
},
watch: {
carPosition: {
@@ -172,8 +172,7 @@ export default {
}
return new Promise((resolve, reject) => {
const img = new Image()
const urlHost = process.env.VUE_APP_API_BASE_URL
img.src = `${urlHost}${this.mapData.mapImageAddress}`
img.src = `${this.serverUrl}${this.mapData.mapImageAddress}`
// img.src = this.mapData.mapImageAddress
img.onload = () => {
this.cachedImages.map = img