原创 使用keep-alive兩步實現緩存(精簡)

第一步 在 App.vue 裏👇 <template> <div id="app"> <keep-alive> <router-view v-if="$route.meta.keepAlive"></rout