在使用vue项目中出错了
Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead.
最后找csdn终于找到
在该下,有两个直系子元素就会报错,
解决办法:
将你所写的用一个div包裹起来
在使用vue项目中出错了
Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead.
最后找csdn终于找到
在该下,有两个直系子元素就会报错,
解决办法:
将你所写的用一个div包裹起来