From 43f7a39415293718d2d1da44c6e650e958fdae2c Mon Sep 17 00:00:00 2001 From: dojineko Date: Sun, 6 Aug 2017 02:29:44 +0900 Subject: [PATCH] Resolve Promise when got VueComponent --- lib/app/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/app/App.vue b/lib/app/App.vue index d2e9f8a163..8f7e4c32e1 100644 --- a/lib/app/App.vue +++ b/lib/app/App.vue @@ -42,7 +42,7 @@ export default { loadLayout (layout) { if (!layout || !layouts['_' + layout]) layout = 'default' let _layout = '_' + layout - if (typeof layouts[_layout] !== 'function') { + if (typeof layouts[_layout] !== 'function' || layouts[_layout].name === 'VueComponent') { return Promise.resolve(layouts[_layout]) } return layouts[_layout]()