diff --git a/src/components/common/VnForm.vue b/src/components/common/VnForm.vue
index b918c9a7..bb78317c 100644
--- a/src/components/common/VnForm.vue
+++ b/src/components/common/VnForm.vue
@@ -82,7 +82,7 @@ const props = defineProps({
}
});
-const emit = defineEmits(['onDataSaved']);
+const emit = defineEmits(['onDataSaved', 'onDataFetched']);
const { t } = useI18n();
const jApi = inject('jApi');
@@ -133,6 +133,7 @@ const fetchFormData = async () => {
formData.value = { ...modelInfo.value.data[0] };
loading.value = false;
+ emit('onDataFetched', formData.value);
};
const onSubmitSuccess = () => {
@@ -200,10 +201,7 @@ defineExpose({
-
+
{{ title }}
-
-
+
+
-
+
+
diff --git a/src/pages/Account/AccountConfig.vue b/src/pages/Account/AccountConfig.vue
index 92774f60..631073ab 100644
--- a/src/pages/Account/AccountConfig.vue
+++ b/src/pages/Account/AccountConfig.vue
@@ -53,6 +53,10 @@ const updateUserNickname = async nickname => {
}
};
+const formatMailData = data => {
+ data.isToBeMailed = Boolean(data.isToBeMailed);
+};
+
onMounted(() => fetchLanguagesSql());
@@ -116,18 +120,20 @@ onMounted(() => fetchLanguagesSql());
formatMailData($event)"
>