fix regression in dev mode

This commit is contained in:
devneko 2017-10-29 10:42:38 +09:00
parent c0065127f1
commit 65d645d54c

View File

@ -393,7 +393,7 @@ function nuxtReady (app) {
// Special hot reload with asyncData(context)
function getNuxtChildComponents($parent, $components = []) {
$parent.$children.forEach(($child) => {
if ($child.$vnode.data.nuxtChild && !$components.find(c =>(component.$options.__file === $child.$options.__file))) {
if ($child.$vnode.data.nuxtChild && !$components.find(c =>(c.$options.__file === $child.$options.__file))) {
$components.push($child)
}
if ($child.$children && $child.$children.length) {