Ver Fonte

add component info in render warning

Evan You há 10 anos atrás
pai
commit
113232f960
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      src/core/instance/render.js

+ 2 - 1
src/core/instance/render.js

@@ -66,7 +66,8 @@ export function renderMixin (Vue: Class<Component>) {
       if (process.env.NODE_ENV !== 'production' && Array.isArray(vnode)) {
         warn(
           'Multiple root nodes returned from render function. Render function ' +
-          'should return a single root node.'
+          'should return a single root node.',
+          vm
         )
       }
       vnode = emptyVNode