Explorar o código

Loading: fix after-leave execution when init value is false (#9722)

杨奕 %!s(int64=7) %!d(string=hai) anos
pai
achega
096dbddf98
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/loading/src/directive.js

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

@@ -100,7 +100,7 @@ loadingDirective.install = Vue => {
       el.mask = mask.$el;
       el.maskStyle = {};
 
-      toggleLoading(el, binding);
+      binding.value && toggleLoading(el, binding);
     },
 
     update: function(el, binding) {