fix: clear form when close without submit

This commit is contained in:
puriphatt 2024-06-24 09:07:06 +00:00
parent e06abf1e77
commit 856b38ebea

View file

@ -1395,7 +1395,7 @@ watch(currentStatus, async () => {
noAddress noAddress
:title="$t('addProduct')" :title="$t('addProduct')"
:submit="() => (productMode === 'type' ? submitType() : submitGroup())" :submit="() => (productMode === 'type' ? submitType() : submitGroup())"
:close="() => {}" :close="clearFormGroup"
> >
<template #information> <template #information>
<BasicInformation <BasicInformation
@ -1441,6 +1441,7 @@ watch(currentStatus, async () => {
no-footer no-footer
no-app-box no-app-box
max-width="80%" max-width="80%"
:close="() => (dialogProductServiceType = false)"
> >
<template #body> <template #body>
<div class="row q-gutter-xl q-pa-sm"> <div class="row q-gutter-xl q-pa-sm">
@ -1694,6 +1695,7 @@ watch(currentStatus, async () => {
" "
:close=" :close="
() => { () => {
clearFormService();
dialogService = false; dialogService = false;
} }
" "