页面缓存实现

keep-alive

src/layouts/admin.vue

            <el-main>
                <f-tag-list/>
                <router-view v-slot="{ Component }">
                    <keep-alive  :max="10">
                        <component :is="Component"></component>
                    </keep-alive>
                </router-view>
            </el-main>

Last updated