Loading: fix a overflow hidden bug (#986)

This commit is contained in:
杨奕
2016-11-13 11:46:20 +08:00
committed by FuryBean
parent d7fd700c54
commit 19cadd1489

View File

@@ -46,7 +46,7 @@ exports.install = Vue => {
el.spinner.style.display = 'none';
el.domVisible = false;
if (binding.modifiers.fullscreen) {
if (binding.modifiers.fullscreen && el.originalOverflow !== 'hidden') {
document.body.style.overflow = el.originalOverflow;
}
if (binding.modifiers.fullscreen || binding.modifiers.body) {