每个组件模块(component template)只允许有一个根元素(便于循环的时候只在一个元素上加v-if)
<template>
<head></head>
<container><container>
<footer></footer>
</template>
需要写成
<template>
<div>
<head></head>
<container><container>
<footer></footer>
</div>
</template>
每个组件模块(component template)只允许有一个根元素(便于循环的时候只在一个元素上加v-if)
<template>
<head></head>
<container><container>
<footer></footer>
</template>
需要写成
<template>
<div>
<head></head>
<container><container>
<footer></footer>
</div>
</template>