mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-25 10:56:35 +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,
|
onMounted,
|
||||||
Transition,
|
Transition,
|
||||||
onActivated,
|
onActivated,
|
||||||
onBeforeMount,
|
|
||||||
onDeactivated,
|
onDeactivated,
|
||||||
|
onBeforeUnmount,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
import { createNamespace, isDef } from '../utils';
|
import { createNamespace, isDef } from '../utils';
|
||||||
|
|
||||||
@ -280,7 +280,7 @@ export default createComponent({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
onBeforeMount(() => {
|
onBeforeUnmount(() => {
|
||||||
if (opened) {
|
if (opened) {
|
||||||
unlockScroll();
|
unlockScroll();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user