fix popup

This commit is contained in:
cookfront
2017-04-05 17:28:39 +08:00
parent 26ed7be5a9
commit afa914942e
3 changed files with 35 additions and 3 deletions

View File

@@ -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;