Browse Source

fix: avoid double inserting root component

Evan You 7 năm trước cách đây
mục cha
commit
a8522cf48c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/core/src/createRenderer.ts

+ 1 - 1
packages/core/src/createRenderer.ts

@@ -265,7 +265,7 @@ export function createRenderer(options: RendererOptions) {
       el = mountComponentInstance(
         vnode,
         tag as ComponentClass,
-        container,
+        null,
         parentComponent,
         isSVG,
         endNode