<keep-alive :include="componentName">
<router-view></router-view>
</keep-alive>
componentName: ["memberList", "storeSettlement","OpenCardAdd"]
beforeRouteEnter (from, to, next) {
next(vm => {
//
if (to.path.includes("/MarketingManage/Coupon/AddCoupon")){
}
});
},
requires you to cache the entire page when you jump from OpenCardAdd to AddCoupon and then jump back from addcoupor to OpenCardAdd to load the previously saved page
how should beforeRouteEnter write