前端报错一:
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.
原因:vue的<template></template>中只能包含一个根标签
解决办法:在template标签中加入一个div标签,内容写在div内
前端报错一:
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.
原因:vue的<template></template>中只能包含一个根标签
解决办法:在template标签中加入一个div标签,内容写在div内