Commit 9b2eec4ba5b8bcfb672e3dea36a406802fd6baa3

Authored by ly525
1 parent bbc20ab1

fix(animation) window.getEditorApp may be undefined when preview wirk

front-end/h5/src/mixins/animation.js
@@ -45,7 +45,7 @@ export default { @@ -45,7 +45,7 @@ export default {
45 }, 45 },
46 created () { 46 created () {
47 const that = this 47 const that = this
48 - window.getEditorApp.$on('RUN_ANIMATIONS', () => { 48 + window.getEditorApp && window.getEditorApp.$on('RUN_ANIMATIONS', () => {
49 that.runAnimations() 49 that.runAnimations()
50 // if (that.active) { 50 // if (that.active) {
51 // that.runAnimations() 51 // that.runAnimations()