Delay emitting mounted event

This commit is contained in:
Pig Fang 2018-09-08 21:26:25 +08:00
parent d01daa4137
commit e355c8df68

View File

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