perf: Optimize fetching of world map JSON
This commit is contained in:
parent
c894fde09f
commit
07c11954c7
1 changed files with 1 additions and 5 deletions
|
|
@ -10,11 +10,7 @@ const worldMapTopoJSON = ref({})
|
|||
const areaData = ref([])
|
||||
|
||||
async function getWorldMapJSON() {
|
||||
const data = await $fetch('/world.json', {
|
||||
query: {
|
||||
type: 'world',
|
||||
},
|
||||
})
|
||||
const data = await $fetch('/world.json')
|
||||
worldMapTopoJSON.value = data
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue