fix: แก้ i18nไม่ทำงาน
This commit is contained in:
parent
95002a8029
commit
ada27e777d
1 changed files with 7 additions and 4 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue