去掉一些无用的空白页面

This commit is contained in:
Gary Fu
2024-03-31 13:55:45 +08:00
parent e127d26466
commit 56fd1fa151

View File

@@ -114,9 +114,9 @@ const toEditUser = user => {
currentUser.value = { ...user } currentUser.value = { ...user }
showEdit.value = true showEdit.value = true
} }
const formRef = ref()
const submitForm = () => { const submitForm = ({ form }) => {
formRef.value.form.validate(valid => { form.validate(valid => {
if (valid) { if (valid) {
console.log('submit', currentUser.value) console.log('submit', currentUser.value)
showEdit.value = false showEdit.value = false
@@ -173,7 +173,6 @@ const submitForm = () => {
> >
<common-form <common-form
v-if="currentUser" v-if="currentUser"
ref="formRef"
class="form-edit-width-100" class="form-edit-width-100"
:model="currentUser" :model="currentUser"
:options="userFormOptions" :options="userFormOptions"