mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 12:01:57 +08:00
fix todoList编辑值为空时有bug
This commit is contained in:
parent
33a93a12b4
commit
de3a28fe47
@ -61,9 +61,8 @@ export default {
|
||||
const value = e.target.value.trim()
|
||||
const { todo } = this
|
||||
if (!value) {
|
||||
this.deleteTodo({
|
||||
todo
|
||||
})
|
||||
this.deleteTodo(todo)
|
||||
this.editing = false
|
||||
} else if (this.editing) {
|
||||
this.editTodo({
|
||||
todo,
|
||||
|
Loading…
x
Reference in New Issue
Block a user