当前位置:网站首页>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
边栏推荐
- Optimizing for vectorization
- 券商经理给的开户二维码安全吗?找谁可以开户啊?
- What is the ranking of Guosen Securities? Is it safe to open a stock account?
- Complimentary Book Cognitive Control: how does our brain accomplish tasks?
- It's natural for the landlord to take the rent to repay the mortgage
- Pytoch deep learning code skills
- Solution to the upper limit of TeamViewer display devices
- Minister of investment of Indonesia: Hon Hai is considering establishing electric bus system and urban Internet of things in its new capital
- 程序分析与优化 - 8 寄存器分配
- Unity C# 网络学习(十)——UnityWebRequest(一)
猜你喜欢

Document 1

RestCloud ETL抽取動態庫錶數據實踐

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

TS common data types summary

Bank of Beijing x Huawei: network intelligent operation and maintenance tamps the base of digital transformation service

Solution to the upper limit of TeamViewer display devices

Get the intersection union difference set of two dataframes

乐鑫 AWS IoT ExpressLink 模组达到通用可用性

Authoritative announcement on the recruitment of teachers in Yan'an University in 2022

BLE抓包调试信息分析
随机推荐
【 Native cloud】 Éditeur ivx Programmable par tout le monde
Deploy the flask environment using the pagoda panel
710. 黑名单中的随机数
It's natural for the landlord to take the rent to repay the mortgage
使用 Abp.Zero 搭建第三方登录模块(一):原理篇
网上股票开户安不安全?谁给回答一下
Notes on writing questions in C language -- table tennis competition
qt下多个子控件信号槽绑定方法
【云原生】 ”人人皆可“ 编程的无代码 iVX 编辑器
整理了一批脚本标准的函数模块(2021版)
R语言caTools包进行数据划分、scale函数进行数据缩放、class包的knn函数构建K近邻分类器
手机股票注册开户安全吗,有没有什么风险?
R language GLM function logistic regression model, using epidisplay package logistic The display function obtains the summary statistical information of the model (initial and adjusted odds ratio and
Go变量的声明与赋值
NVIDIA SMI error
Complimentary Book Cognitive Control: how does our brain accomplish tasks?
Pytoch deep learning code skills
Unity C# 网络学习(九)——WWWFrom
Attention meets Geometry:几何引导的时空注意一致性自监督单目深度估计
聊聊几位大厂清华同学的近况