diff --git a/src/pages/Account/Card/AccountBasicData.vue b/src/pages/Account/Card/AccountBasicData.vue index 386b7f83b..067c9c287 100644 --- a/src/pages/Account/Card/AccountBasicData.vue +++ b/src/pages/Account/Card/AccountBasicData.vue @@ -5,23 +5,32 @@ import VnSelect from 'src/components/common/VnSelect.vue'; import FormModel from 'components/FormModel.vue'; import VnRow from 'components/ui/VnRow.vue'; import VnInput from 'src/components/common/VnInput.vue'; +import { ref, watch } from 'vue'; const route = useRoute(); const { t } = useI18n(); +const formModelRef = ref(null); const accountFilter = { where: { id: route.params.id }, fields: ['id', 'email', 'nickname', 'name', 'accountStateFk', 'packages', 'pickup'], include: [], }; + +watch( + () => route.params.id, + () => formModelRef.value.reset() +);