From 07c11954c72052004a58ad37dd6a165372d2b421 Mon Sep 17 00:00:00 2001 From: ccbikai Date: Sat, 8 Jun 2024 17:20:10 +0800 Subject: [PATCH] perf: Optimize fetching of world map JSON --- components/dashboard/metrics/Locations.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/components/dashboard/metrics/Locations.vue b/components/dashboard/metrics/Locations.vue index 51cbc6f..280c5d0 100644 --- a/components/dashboard/metrics/Locations.vue +++ b/components/dashboard/metrics/Locations.vue @@ -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 }