Browse Source

fix: beforeRender和beforeMount同时存在时不触发beforeMount

es6
iapyang 3 years ago
parent
commit
c40fde28f8
  1. 2
      src/core/4.widget.js

2
src/core/4.widget.js

@ -126,10 +126,10 @@
_global.console && console.error("组件: 请检查beforeRender内部的写法,callback只能执行一次"); _global.console && console.error("组件: 请检查beforeRender内部的写法,callback只能执行一次");
return; return;
} }
self.__async = false;
renderCallbackCalled = true; renderCallbackCalled = true;
self._render(); self._render();
self.__afterRender(); self.__afterRender();
self.__async = false;
} }
if (self.options.beforeRender || self.beforeRender) { if (self.options.beforeRender || self.beforeRender) {

Loading…
Cancel
Save