From 56fd1fa15100efcb044229861094f2b8d9784d6b Mon Sep 17 00:00:00 2001 From: Gary Fu Date: Sun, 31 Mar 2024 13:55:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E4=B8=80=E4=BA=9B=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E7=9A=84=E7=A9=BA=E7=99=BD=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/admin/Users.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/views/admin/Users.vue b/src/views/admin/Users.vue index eedb283..8df945c 100644 --- a/src/views/admin/Users.vue +++ b/src/views/admin/Users.vue @@ -114,9 +114,9 @@ const toEditUser = user => { currentUser.value = { ...user } showEdit.value = true } -const formRef = ref() -const submitForm = () => { - formRef.value.form.validate(valid => { + +const submitForm = ({ form }) => { + form.validate(valid => { if (valid) { console.log('submit', currentUser.value) showEdit.value = false @@ -173,7 +173,6 @@ const submitForm = () => { >