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 }
|
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user