fix: แก้ i18nไม่ทำงาน

This commit is contained in:
Net 2024-04-18 15:21:32 +07:00
parent 95002a8029
commit ada27e777d

View file

@ -76,10 +76,6 @@ onMounted(async () => {
} }
}); });
watch(locale, () => {
console.log(locale.value);
});
const currentHq = ref<{ id: string; code: string }>({ const currentHq = ref<{ id: string; code: string }>({
id: '', id: '',
code: '', code: '',
@ -283,6 +279,13 @@ function changeTitle(
} }
return ''; return '';
} }
watch(locale, () => {
fieldSelectedBranch.value = {
label: t(`${fieldSelectedBranch.value.value}`),
value: fieldSelectedBranch.value.value,
};
});
</script> </script>
<template> <template>