当前位置:网站首页>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
边栏推荐
- Bank of Beijing x Huawei: network intelligent operation and maintenance tamps the base of digital transformation service
- 杜老师说网站更新图解
- View触摸分析
- Informatics Olympiad all in one 1400: count the number of words (string matching)
- Deploy the flask environment using the pagoda panel
- 挖财注册开户安全吗,有没有什么风险?
- 小程序:uniapp解决 vendor.js 体积过大的问题
- About selenium common. exceptions. Webdriverexception: message: an unknown server side error solution (resolved)
- Is it safe to open an account by digging money? Is there any risk?
- The R language cartools package divides data, the scale function scales data, and the KNN function of the class package constructs a k-nearest neighbor classifier
猜你喜欢

Document 1

Program analysis and Optimization - 8 register allocation

Minister of investment of Indonesia: Hon Hai is considering establishing electric bus system and urban Internet of things in its new capital

TCP congestion control details | 1 summary

BLE抓包调试信息分析

10分钟了解BIM+GIS融合,常见BIM数据格式及特性

Restcloud ETL extraction de données de table de base de données dynamique

使用卷积对数据进行平滑处理

【 Native cloud】 Éditeur ivx Programmable par tout le monde

小程序:uniapp解决 vendor.js 体积过大的问题
随机推荐
10分钟了解BIM+GIS融合,常见BIM数据格式及特性
Unity uses skybox panoramic shader to make panorama preview. There is a gap. Solution
【 Native cloud】 Éditeur ivx Programmable par tout le monde
聊聊几位大厂清华同学的近况
redis集群的重新分片与ASK命令
R语言glm函数逻辑回归模型、使用epiDisplay包logistic.display函数获取模型汇总统计信息(自变量初始和调整后的优势比及置信区间,回归系数的Wald检验的p值)、结果保存到csv
Notes on writing questions in C language -- table tennis competition
clustermeet
Where do people get their top energy?
房东拿租金去还房贷是天经地义的嘛
Redis cluster messages
Is it safe to open a stock account through the account opening link given by the broker manager? I want to open an account
Use abp Zero builds a third-party login module (II): server development
集群中命令的执行过程
北京银行x华为:网络智能运维夯实数字化转型服务底座
R语言使用ggplot2可视化泊松回归模型(Poisson Regression)的结果、可视化不同参量组合下的计数结果
One copy ten, CVPR oral was accused of plagiarizing a lot, and it was exposed on the last day of the conference!
乐鑫 AWS IoT ExpressLink 模组达到通用可用性
程序分析与优化 - 8 寄存器分配
R language uses the aggregate function of epidisplay package to split numerical variables into different subsets based on factor variables, calculate the summary statistics of each subset, and use agg