fix emitting mounted
event
This commit is contained in:
parent
9a29df2a07
commit
375fcb38b4
@ -40,7 +40,7 @@ function loadModules() {
|
|||||||
? document.querySelector(route.el)
|
? document.querySelector(route.el)
|
||||||
: route.el
|
: route.el
|
||||||
ReactDOM.render(<Root />, c, () => {
|
ReactDOM.render(<Root />, c, () => {
|
||||||
emitter.emit('mounted', { el: route.el })
|
setTimeout(() => emitter.emit('mounted', { el: route.el }), 0)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (route.component) {
|
if (route.component) {
|
||||||
|
Loading…
Reference in New Issue
Block a user