refactor: ยิง api myBranch
This commit is contained in:
parent
9e9e156428
commit
d3c2412a0a
1 changed files with 6 additions and 0 deletions
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue