Просмотр исходного кода

component vnode tag should be related to the constructor id

Evan You 10 лет назад
Родитель
Сommit
af56242c3d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/runtime/vdom/component.js

+ 1 - 1
src/runtime/vdom/component.js

@@ -25,7 +25,7 @@ export default function Component (Ctor, data, parent, children) {
   }
   // return a placeholder vnode
   return {
-    tag: 'component',
+    tag: 'vue-component-' + Ctor.cid,
     key: data && data.key,
     data: { hook, Ctor, data, parent, children }
   }