Merge branch 'vue-element-pr'

This commit is contained in:
zhoujiaxing 2020-12-04 20:35:51 +08:00
commit 4e00cb8276
1 changed files with 2 additions and 3 deletions

View File

@ -61,9 +61,8 @@ export default {
const value = e.target.value.trim() const value = e.target.value.trim()
const { todo } = this const { todo } = this
if (!value) { if (!value) {
this.deleteTodo({ this.deleteTodo(todo)
todo this.editing = false
})
} else if (this.editing) { } else if (this.editing) {
this.editTodo({ this.editTodo({
todo, todo,