fix: fetch first br (personnel management)
This commit is contained in:
parent
65dbd60eae
commit
aba75d06cc
1 changed files with 6 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
<script setup lang="ts">
|
||||
import useUserStore from 'src/stores/user';
|
||||
import { onMounted } from 'vue';
|
||||
|
||||
const userStore = useUserStore();
|
||||
|
||||
|
|
@ -27,6 +28,11 @@ async function selectHq(id: string) {
|
|||
brId.value = userStore.userOption.brOpts[0].value;
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
if (userStore.userOption.hqOpts[0].value)
|
||||
await userStore.fetchBrOption(userStore.userOption.hqOpts[0].value);
|
||||
});
|
||||
</script>
|
||||
<template>
|
||||
<div class="col-3 app-text-muted">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue