Vue keepAlive:true failure

 {
  path: "/information",
  name:"information",
  meta:{
    keepAlive:true 
  },
  component: function (resolve) {
  require(["@/view/personal/components/information/information"],         
  resolve)
  },
},


meta:{
    keepAlive:true 
},





May.19,2022

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>
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bdb3b5-137a1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bdb3b5-137a1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?