소스 검색

Loading: fix a overflow hidden bug (#986)

杨奕 8 년 전
부모
커밋
19cadd1489
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/loading/src/directive.js

+ 1 - 1
packages/loading/src/directive.js

@@ -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) {