Browse Source

无jira任务,beforeRender加上catch

es6
Guyi 3 years ago
parent
commit
815fd7c19d
  1. 2
      src/core/4.widget.js

2
src/core/4.widget.js

@ -147,7 +147,7 @@
self.__async = true;
var beforeRenderResult = (self.options.beforeRender || self.beforeRender).call(self, render);
if (beforeRenderResult instanceof Promise) {
beforeRenderResult.then(render);
beforeRenderResult.then(render).catch(render);
}
} else {
self._render();

Loading…
Cancel
Save