From 27c6bb55018132af8456c6f02d5542e8aad4554c Mon Sep 17 00:00:00 2001 From: alan Date: Wed, 25 Sep 2019 10:32:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20DEC-10013=20=E4=BF=AE=E5=A4=8D=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=95=B0=E6=8D=AE=E8=BF=9E=E6=8E=A5=E6=97=B6=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/pages/database/database.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/pages/database/database.ts b/src/modules/pages/database/database.ts index 07a114e..9eb3bd8 100644 --- a/src/modules/pages/database/database.ts +++ b/src/modules/pages/database/database.ts @@ -27,10 +27,10 @@ export class Datebase extends BI.Widget { if (search) { this.store.setFilter(''); this.store.setDatebaseTypes(this.allDatabaseTypes.filter(item => item.text.toLowerCase().includes(search.toLowerCase()))); - } else { + } else if (!this.model.filter) { this.store.setFilter(DATEBASE_FILTER_TYPE.COMMONLY); - this.search.setValue(search); } + this.search.setValue(search); }, filter: (filter: string) => { this.filter.setValue(filter);