From 8fda63230bfcfbc7a4706d786cca8daa0f6333a3 Mon Sep 17 00:00:00 2001 From: 63f1bb74d2451104dc7d8b9f <63f1bb74d2451104dc7d8b9f@devide> Date: Mon, 17 Jul 2023 13:36:00 +0800 Subject: [PATCH] Mon Jul 17 13:36:00 CST 2023 inscode --- src/components/GameChart.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/GameChart.vue b/src/components/GameChart.vue index 5ac06db..e513528 100644 --- a/src/components/GameChart.vue +++ b/src/components/GameChart.vue @@ -120,6 +120,7 @@ function initMap() { let itemData = chinaJson.features let length = itemData.length state.aimPointData = [] + state.airData=[] state.linesCoord= [] for (let loc = 0; loc < length; ++loc) { let name = itemData[loc].properties.name @@ -138,7 +139,7 @@ function initMap() { let center = itemData[loc].properties.center Object.keys(gameJson).forEach(uid => { const locName=gameJson[uid].ip.split(':')[1] - if (name.includes(locName)||locName.includes(name)) { + if (name.includes(locName)||locName.includes) { number += 1 } }) -- GitLab