mirror of
https://github.com/fugary/simple-element-plus-template.git
synced 2025-11-12 14:27:49 +00:00
去掉一些无用的空白页面
This commit is contained in:
@@ -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 = () => {
|
||||
>
|
||||
<common-form
|
||||
v-if="currentUser"
|
||||
ref="formRef"
|
||||
class="form-edit-width-100"
|
||||
:model="currentUser"
|
||||
:options="userFormOptions"
|
||||
|
||||
Reference in New Issue
Block a user