mirror of
https://github.com/Nezumi-2711/Sink.git
synced 2026-09-22 13:48:35 +00:00
perf: Optimize fetching of world map JSON
This commit is contained in:
@@ -10,11 +10,7 @@ const worldMapTopoJSON = ref({})
|
|||||||
const areaData = ref([])
|
const areaData = ref([])
|
||||||
|
|
||||||
async function getWorldMapJSON() {
|
async function getWorldMapJSON() {
|
||||||
const data = await $fetch('/world.json', {
|
const data = await $fetch('/world.json')
|
||||||
query: {
|
|
||||||
type: 'world',
|
|
||||||
},
|
|
||||||
})
|
|
||||||
worldMapTopoJSON.value = data
|
worldMapTopoJSON.value = data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user