From b9d12ce5a8660f1b35e6d40256144545002e5940 Mon Sep 17 00:00:00 2001 From: zhoujiaxing Date: Fri, 4 Dec 2020 20:57:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:enter=E4=BA=8B=E4=BB=B6=E4=BC=9A=E5=AF=BC?= =?UTF-8?q?=E8=87=B4blur=E4=BA=8B=E4=BB=B6=E8=A7=A6=E5=8F=91=EF=BC=8C?= =?UTF-8?q?=E8=A7=A6=E5=8F=91=E4=BA=86=E4=B8=A4=E6=AC=A1doneEdit?= 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) {