refactor: ยิง api myBranch

This commit is contained in:
Net 2024-07-05 11:10:00 +07:00
parent 9e9e156428
commit d3c2412a0a

View file

@ -16,6 +16,10 @@ import useOptionStore from 'src/stores/options';
import { dialog } from 'src/stores/utils';
import { setLocale } from 'src/utils/datetime';
import useUtilsStore from 'src/stores/utils';
import useMyBranchStore from 'src/stores/my-branch';
const useMyBranch = useMyBranchStore();
const { fetchListMyBranch } = useMyBranch;
interface NotificationButton {
item: string;
@ -138,6 +142,8 @@ watch(
);
onMounted(async () => {
await fetchListMyBranch(getUserId() ?? '');
const getCurLang = localStorage.getItem('currentLanguage');
if (getCurLang) currentLanguage.value = getCurLang;
if (currentLanguage.value === 'English') {