mirror of
https://github.com/youzan/vant.git
synced 2025-12-19 01:02:29 +08:00
Merge branch 'feature/code_review'
This commit is contained in:
@@ -118,7 +118,7 @@ export default {
|
||||
this.bodyOverflow = document.body.style.overflow;
|
||||
}
|
||||
|
||||
document.body.style.overlay = 'hidden';
|
||||
document.body.style.overflow = 'hidden';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,7 +139,7 @@ export default {
|
||||
|
||||
if (this.lockOnScroll) {
|
||||
setTimeout(() => {
|
||||
if (this.modal && this.bodyOverflow !== 'hidden') {
|
||||
if (this.overlay && this.bodyOverflow !== 'hidden') {
|
||||
document.body.style.overflow = this.bodyOverflow;
|
||||
}
|
||||
this.bodyOverflow = null;
|
||||
|
||||
Reference in New Issue
Block a user