Commit 9b2eec4ba5b8bcfb672e3dea36a406802fd6baa3
1 parent
bbc20ab1
fix(animation) window.getEditorApp may be undefined when preview wirk
Showing
1 changed file
with
1 additions
and
1 deletions
front-end/h5/src/mixins/animation.js
| ... | ... | @@ -45,7 +45,7 @@ export default { |
| 45 | 45 | }, |
| 46 | 46 | created () { |
| 47 | 47 | const that = this |
| 48 | - window.getEditorApp.$on('RUN_ANIMATIONS', () => { | |
| 48 | + window.getEditorApp && window.getEditorApp.$on('RUN_ANIMATIONS', () => { | |
| 49 | 49 | that.runAnimations() |
| 50 | 50 | // if (that.active) { |
| 51 | 51 | // that.runAnimations() | ... | ... |