{
path: "/information",
name:"information",
meta:{
keepAlive:true
},
component: function (resolve) {
require(["@/view/personal/components/information/information"],
resolve)
},
},
meta:{
keepAlive:true
},
{
path: "/information",
name:"information",
meta:{
keepAlive:true
},
component: function (resolve) {
require(["@/view/personal/components/information/information"],
resolve)
},
},
meta:{
keepAlive:true
},
what does it matter if you route set mete , vue will not automatically recognize it. The key point is whether App.vue has a keep-alive package based on the route mete .
<keep-alive>
<router-view v-if="$route.meta.keepAlive"></router-view>
</keep-alive>
<router-view v-if="!$route.meta.keepAlive"></router-view>
something like this
<keep-alive>
<router-view></router-view>
</keep-alive> Previous: How to correctly judge how long the input content is stored in mysql with js?
Next: How is the empty-text property in the table component in element set through the slot= "empty"?