diff --git a/src/components/GameChart.vue b/src/components/GameChart.vue
index c3b7ebca8787d5cb5fcf255ca56d04a1d4fd6725..6e00411bdeb1bfd9c7ea6668a8cdd9cac4ecbeb2 100644
--- a/src/components/GameChart.vue
+++ b/src/components/GameChart.vue
@@ -4,6 +4,11 @@
{{ state.title }}
+
@@ -84,14 +89,17 @@ function initDataSource() {
}
function filterName(name) {
+ console.log('name',name)
state.dataSource = []
state.total = 0
Object.keys(gameJson).forEach(uid => {
- if(name.includes(gameJson[uid].name)){
+ const locName=gameJson[uid].ip.split(':')[1]
+ if(name.includes(locName)){
+
state.dataSource.push({
uid: gameJson[uid].uid,
name: gameJson[uid].name,
- ip: gameJson[uid].ip.split(':')[1]
+ ip: locName
})
state.total += 1
}