Component template should contain exactly one root element. If you are using v-if on multiple elemen

在HelloWord组件中引用HiWord组件<HiWord></HiWord>,因为HiWord的位置外围的父元素是<template></template>,所以就报错了。要在<HiWord></HiWord>外面在套一层元素。

猜你喜欢

转载自blog.csdn.net/like_jack/article/details/79805897