vbenjs / vue-vben-admin

A modern vue admin. It is based on Vue3, vite and TypeScript. It's fast!
https://vben.vvbin.cn/
MIT License
22.88k stars 6.24k forks source link

API will triggered twice when clicking the reset button of form in BasicTable with submitOnChange is present #3893

Open doraemonxxx opened 1 month ago

doraemonxxx commented 1 month ago

⚠️ IMPORTANT ⚠️ Please check the following list before proceeding. If you ignore this issue template, your issue will be directly closed.

Describe the bug

API will triggered twice when clicking the reset button of form in BasicTable with submitOnChange is present

Reproduction

useTable({formConfig: {submitOnChange: true}})

Reference

watch(
    () => formModel,
    useDebounceFn(() => {
      unref(getProps).submitOnChange && handleSubmit();
    }, 300),
    { deep: true },
  );

System Info