1、template的slot写法变化
vue2:
<template slot-scope="{row, index}" slot="action">
vue3:
<template #action="{row, index}">
2、路由页面缓存的写法变化
vue2:
<keep-alive :include="cacheList">
<router-view/>
</keep-alive>
vue3:
<router-view v-slot="{ Component }">
<keep-alive :include="cacheList">
<component :is="Component" />
</keep-alive>
</router-view>
注:cacheList是要缓存的页面
标签:缓存,变化,升级,vue2,vue3,写法,页面 From: https://www.cnblogs.com/jiayuan2006/p/18083423