fix: 解决表单回显必填严重无法通过的问题
This commit is contained in:
parent
cdd0ddd88a
commit
136fdb8b79
|
@ -369,7 +369,8 @@ onMounted(() => {
|
||||||
const btnLoading = ref<boolean>(false);
|
const btnLoading = ref<boolean>(false);
|
||||||
const handleSubmit = () => {
|
const handleSubmit = () => {
|
||||||
console.log('formData.value: ', formData.value);
|
console.log('formData.value: ', formData.value);
|
||||||
validate()
|
const form = useForm(formData.value, formRules.value);
|
||||||
|
form.validate()
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
btnLoading.value = true;
|
btnLoading.value = true;
|
||||||
let res;
|
let res;
|
||||||
|
|
Loading…
Reference in New Issue