Fix URL bug when refreshing weather radar
This commit is contained in:
parent
d4cf4e1c3e
commit
c92d9aae0d
1 changed files with 6 additions and 2 deletions
|
@ -26,12 +26,16 @@ const panelHeadingTitle = computed(() => {
|
||||||
|
|
||||||
|
|
||||||
const radarLatestURL = computed(() => {
|
const radarLatestURL = computed(() => {
|
||||||
return `${weatherStore.radarLatestURL}?t=${timestamp.value}`
|
if (weatherStore.weather) {
|
||||||
|
return `${weatherStore.radarLatestURL}?t=${timestamp.value}`
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
const radarLoopURL = computed(() => {
|
const radarLoopURL = computed(() => {
|
||||||
return `${weatherStore.radarLoopURL}?t=${timestamp.value}`
|
if (weatherStore.weather) {
|
||||||
|
return `${weatherStore.radarLoopURL}?t=${timestamp.value}`
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue