浏览代码

fix form validation

Olivier Massot 2 年之前
父节点
当前提交
474ad33ae5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/Ui/Form.vue

+ 1 - 1
components/Ui/Form.vue

@@ -343,7 +343,7 @@ const onValidationChange = (event: boolean | null) => {
  * @see https://vuetifyjs.com/en/api/v-form/#functions-validate
  */
 const validate = async function () {
-  const validation = form.value.validate()
+  const validation = await form.value.validate()
   isValid.value = validation.valid
   errors.value = validation.errors
 }