当前位置:网站首页>Cache page keepalive use in Vue
Cache page keepalive use in Vue
2022-06-26 15:05:00 【A Taurus cub】
- Configure... In the route
{
path: '',
name: 'xx',
meta: {
keepAlive: true },
component: xx
},
- stay App.vue Middle configuration
<keep-alive>
<router-view v-if="$route.meta.keepAlive"></router-view>
</keep-alive>
<router-view v-if="!$route.meta.keepAlive" :key="key">
</router-view>
computed: {
key() {
return this.$route.path + Math.random();
},
},
- Unique life cycle
// Triggered on entry
activated() {
}
// Trigger on exit
deactivated() {
}
keepAlive It also supports many functions , You need to check it yourself
边栏推荐
- R language dplyr package bind_ The rows function merges the rows of the two dataframes vertically. The final number of rows is the sum of the rows of the original two dataframes (combine data frames)
- Use abp Zero builds a third-party login module (I): Principles
- The JVM outputs GC logs, causing the JVM to get stuck. I am stupid
- Kubernetes的pod调度
- 手机股票注册开户安全吗,有没有什么风险?
- 使用 Abp.Zero 搭建第三方登录模块(一):原理篇
- TCP 复位攻击原理
- Attention meets Geometry:几何引导的时空注意一致性自监督单目深度估计
- TS common data types summary
- R语言使用epiDisplay包的aggregate函数将数值变量基于因子变量拆分为不同的子集,计算每个子集的汇总统计信息、使用aggregate.data.frame函数计算分组汇总统计信息
猜你喜欢
Halcon C # sets the form font and adaptively displays pictures
Complimentary Book Cognitive Control: how does our brain accomplish tasks?
Use abp Zero builds a third-party login module (I): Principles
Document 1
详解C语言编程题:任意三条边能否构成三角形,输出该三角形面积并判断其类型
One copy ten, CVPR oral was accused of plagiarizing a lot, and it was exposed on the last day of the conference!
RestCloud ETL解决shell脚本参数化
Smoothing data using convolution
10分钟了解BIM+GIS融合,常见BIM数据格式及特性
【云原生】 ”人人皆可“ 编程的无代码 iVX 编辑器
随机推荐
View触摸分析
【 Native cloud】 Éditeur ivx Programmable par tout le monde
TCP拥塞控制详解 | 1. 概述
Use abp Zero builds a third-party login module (II): server development
This is the graceful file system mounting method, which is effective through personal testing
R language uses ggplot2 to visualize the results of Poisson regression model and count results under different parameter combinations
MongoDB系列之Window环境部署配置
SAP gui 770 下载
Sikuli 基于图形识别的自动化测试技术
Sharing ideas for a quick switch to an underlying implementation
Talk about the RPA direction planning: stick to simple and valuable things for a long time
clustermeet
The intersect function in the dplyr package of R language obtains the data lines that exist in both dataframes and the data lines that cross the two dataframes
Keil4打开单片机工程一片空白,cpu100%程序卡死的问题解决
Idea shortcut key
网上找客户经理办理股票开户安全吗??
10分钟了解BIM+GIS融合,常见BIM数据格式及特性
One copy ten, CVPR oral was accused of plagiarizing a lot, and it was exposed on the last day of the conference!
Pytorch深度学习代码技巧
权威发布 | 延安大学2022年教师岗位招聘公告