diff --git a/src/modules/interface/menus/components/MenuEditingModal.vue b/src/modules/interface/menus/components/MenuEditingModal.vue index 05424be2..793170a3 100644 --- a/src/modules/interface/menus/components/MenuEditingModal.vue +++ b/src/modules/interface/menus/components/MenuEditingModal.vue @@ -8,6 +8,7 @@ import { apiClient } from "@halo-dev/admin-shared"; import { submitForm } from "@formkit/core"; import cloneDeep from "lodash.clonedeep"; import { useMagicKeys } from "@vueuse/core"; +import { reset } from "@formkit/core"; const props = defineProps({ visible: { @@ -87,6 +88,7 @@ watch(props, (newVal) => { } formState.value = cloneDeep(initialFormState); formState.value.metadata.name = uuid(); + reset("menu-form"); });