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:
parent
33a93a12b4
commit
de3a28fe47
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user