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
报错的大致意思是:组件的模板<template>应该只能包含一个根元素,也就是是说作为元素<template>的直系儿子的元素只能有一个。
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
报错的大致意思是:组件的模板<template>应该只能包含一个根元素,也就是是说作为元素<template>的直系儿子的元素只能有一个。