mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Popup): should remove lock scroll before destroyed #7835
This commit is contained in:
parent
650f6cdacd
commit
0811479764
@ -7,8 +7,8 @@ import {
|
||||
onMounted,
|
||||
Transition,
|
||||
onActivated,
|
||||
onBeforeMount,
|
||||
onDeactivated,
|
||||
onBeforeUnmount,
|
||||
} from 'vue';
|
||||
import { createNamespace, isDef } from '../utils';
|
||||
|
||||
@ -280,7 +280,7 @@ export default createComponent({
|
||||
}
|
||||
});
|
||||
|
||||
onBeforeMount(() => {
|
||||
onBeforeUnmount(() => {
|
||||
if (opened) {
|
||||
unlockScroll();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user