Postpone the emitting

This commit is contained in:
Pig Fang 2018-09-08 15:39:14 +08:00
parent 4c40900910
commit 016367a0a8

View File

@ -22,7 +22,7 @@ if (process.env.NODE_ENV === 'development') {
new Vue({
el: route.el,
mounted() {
emitter.emit('mounted', { el: route.el });
setTimeout(() => emitter.emit('mounted', { el: route.el }), 0);
},
render: h => h(route.component)
});