From ada27e777d4478dd4e70c428085311160f09875c Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Thu, 18 Apr 2024 15:21:32 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B9=81=E0=B8=81=E0=B9=89=20=20i18n?= =?UTF-8?q?=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B8=97=E0=B8=B3=E0=B8=87=E0=B8=B2?= =?UTF-8?q?=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/01_branch-management/MainPage.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/pages/01_branch-management/MainPage.vue b/src/pages/01_branch-management/MainPage.vue index 5f7541a2..e1bcff9e 100644 --- a/src/pages/01_branch-management/MainPage.vue +++ b/src/pages/01_branch-management/MainPage.vue @@ -76,10 +76,6 @@ onMounted(async () => { } }); -watch(locale, () => { - console.log(locale.value); -}); - const currentHq = ref<{ id: string; code: string }>({ id: '', code: '', @@ -283,6 +279,13 @@ function changeTitle( } return ''; } + +watch(locale, () => { + fieldSelectedBranch.value = { + label: t(`${fieldSelectedBranch.value.value}`), + value: fieldSelectedBranch.value.value, + }; +});