搜索对象todoList
search (filter) {
let arr = []
let reg = new RegExp(filter.value)
for (let i = 0; i < this.todoList.length; i++) {
if (this.todoList[i].name.match(reg)) {
arr.push(this.todoList[i])
}
}
},