mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
Fix class component checks for extended components
This commit is contained in:
parent
127155d61a
commit
221bb8800f
@ -79,7 +79,7 @@ export default async context => {
|
|||||||
let Components = []
|
let Components = []
|
||||||
try {
|
try {
|
||||||
Components = await Promise.all(getMatchedComponents(router.match(context.url)).map(Component => {
|
Components = await Promise.all(getMatchedComponents(router.match(context.url)).map(Component => {
|
||||||
if (typeof Component !== 'function' || Component.super === Vue) {
|
if (typeof Component !== 'function' || Component.cid) {
|
||||||
return sanitizeComponent(Component)
|
return sanitizeComponent(Component)
|
||||||
}
|
}
|
||||||
return Component().then(Component => sanitizeComponent(Component))
|
return Component().then(Component => sanitizeComponent(Component))
|
||||||
|
Loading…
Reference in New Issue
Block a user