Browse Source

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

This reverts commit c40fde28f8.
es6
iapyang 3 years ago
parent
commit
06abedca05
  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