diff --git a/apps/vue/src/hooks/component/useFormItem.ts b/apps/vue/src/hooks/component/useFormItem.ts index f1a9cef63..1296bb14c 100644 --- a/apps/vue/src/hooks/component/useFormItem.ts +++ b/apps/vue/src/hooks/component/useFormItem.ts @@ -1,13 +1,5 @@ import type { UnwrapRef, Ref, WritableComputedRef, DeepReadonly } from 'vue'; -import { - reactive, - readonly, - computed, - getCurrentInstance, - watchEffect, - unref, - toRaw, -} from 'vue'; +import { reactive, readonly, computed, getCurrentInstance, watchEffect, unref, toRaw } from 'vue'; import { isEqual } from 'lodash-es'; @@ -49,7 +41,9 @@ export function useRuleFormItem( if (isEqual(value, defaultState.value)) return; innerState.value = value as T[keyof T]; - emit?.(changeEvent, value, ...(toRaw(unref(emitData)) || [])); + setTimeout(() => { + emit?.(changeEvent, value, ...(toRaw(unref(emitData)) || [])); + }); }, });