From 655dcf1c341df1d03bfadac784a44743ef02878d Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Mon, 13 Jul 2020 17:15:07 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E9=9A=90=E8=97=8F=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/ui/all-file/all-file.component.html | 4 ++-- src/app/ui/all-file/all-file.component.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/ui/all-file/all-file.component.html b/src/app/ui/all-file/all-file.component.html index 2d0e4b6..c5936ae 100644 --- a/src/app/ui/all-file/all-file.component.html +++ b/src/app/ui/all-file/all-file.component.html @@ -48,13 +48,13 @@ -
+
diff --git a/src/app/ui/all-file/all-file.component.ts b/src/app/ui/all-file/all-file.component.ts index a199694..0eacd9a 100644 --- a/src/app/ui/all-file/all-file.component.ts +++ b/src/app/ui/all-file/all-file.component.ts @@ -235,7 +235,7 @@ export class AllFileComponent { }).subscribe((data:any)=>{ this.allFiles = data.contents this.allFiles.forEach(item=>{ - if(item.key.indexOf(this.searchData)){ + if(item.key.indexOf(this.searchData) != -1){ this.checkedAllFiles.push(item) } })