From 0489d9713f3d77bc5f903aca47ecc479a9702d52 Mon Sep 17 00:00:00 2001 From: zhoujiaxing Date: Fri, 4 Dec 2020 21:13:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:enter=E4=BA=8B=E4=BB=B6=E8=A7=A6=E5=8F=91do?= =?UTF-8?q?neEdit,=E5=8F=88=E4=BC=9A=E5=AF=BC=E8=87=B4blur=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E8=A7=A6=E5=8F=91,=E5=86=8D=E6=AC=A1=E8=A7=A6?= =?UTF-8?q?=E5=8F=91doneEdit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/admin/components/TodoList/Todo.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/dashboard/admin/components/TodoList/Todo.vue b/src/views/dashboard/admin/components/TodoList/Todo.vue index 2dc80d71..181ae5c5 100644 --- a/src/views/dashboard/admin/components/TodoList/Todo.vue +++ b/src/views/dashboard/admin/components/TodoList/Todo.vue @@ -58,6 +58,9 @@ export default { this.$emit('toggleTodo', todo) }, doneEdit(e) { + if (!this.editing) { + return + } const value = e.target.value.trim() const { todo } = this if (!value) {