Skip to content

Commit

Permalink
fix: init form when open
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Mar 5, 2024
1 parent c330db0 commit efefbf5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/CreateLog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ const form = useForm({
validationSchema: formSchema
});
watch(open, (open) => {
if (open) {
form.resetForm();
}
});
const store = useLatestLogs();
const onSubmit = form.handleSubmit(async (values) => {
Expand Down

0 comments on commit efefbf5

Please sign in to comment.