商家端列表页缓存

This commit is contained in:
mabo
2021-07-31 15:49:54 +08:00
parent ad17d8b743
commit 8cec0e6ab8
30 changed files with 279 additions and 493 deletions

View File

@@ -39,9 +39,12 @@
</div>
<div class="single-page-con">
<div class="single-page">
<keep-alive :include="cachePage">
<router-view></router-view>
<!-- <keep-alive :include="cachePage"> -->
<!-- </keep-alive> -->
<keep-alive>
<router-view v-if="$route.meta.keepAlive"></router-view>
</keep-alive>
<router-view v-if="!$route.meta.keepAlive"></router-view>
</div>
</div>
<!-- 全局加载动画 -->
@@ -65,7 +68,7 @@ export default {
data() {
return {
sliceNum: 5, // 展示nav数量
userInfo: "", // 用户信息
userInfo: {}, // 用户信息
navType: 1, // nav类型
};
},