extend search
This commit is contained in:
parent
6a247c8135
commit
4f8ab93b0d
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ export default {
|
||||||
let filteredPapers: Papers[] = this.papers
|
let filteredPapers: Papers[] = this.papers
|
||||||
if (paperQuery !== '') {
|
if (paperQuery !== '') {
|
||||||
filteredPapers = this.papers.filter((paper) => {
|
filteredPapers = this.papers.filter((paper) => {
|
||||||
return paper.name.toLowerCase().includes(paperQuery.toLowerCase())
|
return paper.name.toLowerCase().includes(paperQuery.toLowerCase()) || paper.content.toLowerCase().includes(paperQuery.toLowerCase()) || paper.reference.toLowerCase().includes(paperQuery.toLowerCase())
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (this.paperFilter?.type !== '') {
|
if (this.paperFilter?.type !== '') {
|
||||||
|
|
Loading…
Reference in a new issue