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) } })