refactor: add function resetScrollBar

This commit is contained in:
Net 2024-09-05 10:37:14 +07:00
parent 18059db8a0
commit 47d775ca58
4 changed files with 27 additions and 10 deletions

View file

@ -8,7 +8,7 @@ import { useI18n } from 'vue-i18n';
import useFlowStore from 'stores/flow';
import useUserStore from 'stores/user';
import useBranchStore from 'stores/branch';
import { isRoleInclude } from 'src/stores/utils';
import { isRoleInclude, resetScrollBar } from 'src/stores/utils';
import {
User,
@ -1494,7 +1494,12 @@ watch(
"
v-model:drawerOpen="infoDrawer"
:submit="() => onSubmit()"
:close="() => onClose()"
:close="
() => {
onClose();
resetScrollBar('user-form-content');
}
"
>
<InfoForm>
<div class="q-px-lg q-pt-lg surface-2">