mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-06 21:10:38 +00:00
Merge pull request #765 from clarkdo/dev
Fix class component typeerror when using nuxt1.0.0-alpha
This commit is contained in:
commit
7a46135624
@ -52,7 +52,7 @@ export default async (context) => {
|
||||
let Components = []
|
||||
let promises = getMatchedComponents(router.match(context.url)).map((Component) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (typeof Component !== 'function') return resolve(sanitizeComponent(Component))
|
||||
if (typeof Component !== 'function' || Component.super === Vue) return resolve(sanitizeComponent(Component))
|
||||
const _resolve = (Component) => resolve(sanitizeComponent(Component))
|
||||
Component().then(_resolve).catch(reject)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user