fix: bug #184 clear formData when create new item

This commit is contained in:
puriphatt 2025-02-17 10:15:32 +07:00
parent dec7bf3014
commit 0d22b766af
2 changed files with 7 additions and 0 deletions

View file

@ -112,6 +112,7 @@ const onCreateImageList = ref<{
function triggerDialog(type: 'add' | 'edit' | 'view') {
if (type === 'add') {
formData.value = structuredClone(blankFormData);
pageState.addModal = true;
pageState.isDrawerEdit = true;
}