1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-13 15:15:53 +08:00

fix todoList编辑值为空时有bug

This commit is contained in:
zhoujiaxing 2020-12-04 17:49:09 +08:00
parent 33a93a12b4
commit de3a28fe47

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,