update fix bug and mirror

This commit is contained in:
Silent YANG 2024-09-13 21:49:52 +08:00
parent def4fd3a01
commit 40fc45b7e4

View file

@ -167,8 +167,11 @@ const state: {
})
onMounted(async ()=>{
const rst = await (await fetch('https://mirror.ghproxy.com/https://raw.githubusercontent.com/palewire/ham-satellite-database/main/data/amsat-active-frequencies.json')).text()
state.freqDb = JSON.parse(rst)
try{
const rst = await (await fetch('https://github.jobcher.com/gh/https://raw.githubusercontent.com/palewire/ham-satellite-database/main/data/amsat-active-frequencies.json')).text()
state.freqDb = JSON.parse(rst)
}
catch{}
state.lng = parseFloat(localStorage.getItem('myLng') || '0')
state.lat = parseFloat(localStorage.getItem('myLat') || '0')