refactor: add function resetScrollBar
This commit is contained in:
parent
18059db8a0
commit
47d775ca58
4 changed files with 27 additions and 10 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue