From aac1270705e03abc7a47c291f2146a930aefbe4f Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Thu, 21 Jul 2022 18:52:15 +0800 Subject: [PATCH] =?UTF-8?q?CN-642=20feat:=20=E5=AE=8C=E5=96=84Dashboard=20?= =?UTF-8?q?-=20network=20overview=20-=20=E6=96=B0=E5=A2=9Eapp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts2/charts/NetworkOverviewApps.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/charts2/charts/NetworkOverviewApps.vue b/src/views/charts2/charts/NetworkOverviewApps.vue index 27413c1f..d104072e 100644 --- a/src/views/charts2/charts/NetworkOverviewApps.vue +++ b/src/views/charts2/charts/NetworkOverviewApps.vue @@ -626,14 +626,19 @@ export default { }, appTypeTabChange (val) { this.appShowTypeTab = val.index + this.searcherApp = '' }, searcherAppChange (val) { if (val) { - if (this.appShowTypeTab === 0) { + this.addApp() + if (this.appShowTypeTab == 0) { this.providerOptions = this.providerOptions.filter((t, i) => t.name.indexOf(val) > -1 || t.desc.indexOf(val) > -1) - } else if (this.appShowTypeTab === 1) { + } + if (this.appShowTypeTab == 1) { this.appOptions = this.appOptions.filter((t, i) => t.name.indexOf(val) > -1 || t.desc.indexOf(val) > -1) } + } else { + this.addApp() } }, appCheckedChange (app, num) {