<template>
<router-view v-slot="{ Component, route }">
<transition :name="route.meta?.transition || 'fade'">
<keep-alive :include="cachedViews" :max="10">
<component :is="Component" />
</keep-alive>
</transition>
</router-view>
</template>
<template>总览页面</template>
<script setup lang="ts"></script>
<style scoped></style>
在使用transition 检查每个页面是否有根标签,加上div包裹之后,报错消失