From f01209c97f60b1d6d841cc48774a558f44d6e055 Mon Sep 17 00:00:00 2001 From: 63f1bb74d2451104dc7d8b9f <63f1bb74d2451104dc7d8b9f@devide> Date: Mon, 17 Jul 2023 10:31:40 +0800 Subject: [PATCH] Auto Commit --- src/components/GameChart.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/GameChart.vue b/src/components/GameChart.vue index c3b7ebc..6e00411 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 } -- GitLab