فهرست منبع

fix missing component tag

Evan You 9 سال پیش
والد
کامیت
ae9e7da9c1
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/core/vdom/create-element.js

+ 1 - 1
src/core/vdom/create-element.js

@@ -51,7 +51,7 @@ function _createElement (
       )
     } else if ((Ctor = resolveAsset(context.$options, 'components', tag))) {
       // component
-      return createComponent(Ctor, data, parent, context, host, children)
+      return createComponent(Ctor, data, parent, context, host, children, tag)
     } else {
       // unknown element, but check at runtime because it may get assigned
       // a namespace when its parent normalizes children