From 016367a0a871b6367c70c92955f9fe135d6f0048 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Sat, 8 Sep 2018 15:39:14 +0800 Subject: [PATCH] Postpone the emitting --- resources/assets/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/src/index.js b/resources/assets/src/index.js index f53461dd..38730b41 100644 --- a/resources/assets/src/index.js +++ b/resources/assets/src/index.js @@ -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) });