当前位置:网站首页>vue多级路由嵌套怎么动态缓存组件
vue多级路由嵌套怎么动态缓存组件
2022-07-04 03:35:00 【CSDN问答】
有这么3个页面 app.vue,home.vue,homework.vue
app.vue -> home -> homework3个页面属于路由嵌套关系
我要缓存homework,是只需要在app里的include加入homework的name,还是需要在app和home页面的include都加上呢?
app.vue
<keep-alive include="homework"> <router-view></router-view></keep-alive>
home.vue
<router-view></router-view><van-tabbar-item name="工作台" to="/homework" icon="qr">工作台</van-tabbar-item>
homework.vue
边栏推荐
- pytest多进程/多线程执行测试用例
- 投资深度思考
- MySQL backup notes
- Package details_ Four access control characters_ Two details of protected
- what does ctrl + d do?
- Contest3145 - the 37th game of 2021 freshman individual training match_ J: Eat radish
- GUI Graphical user interface programming (XIV) optionmenu - what do you want your girlfriend to wear on Valentine's day
- Hospital network planning and design document based on GLBP protocol + application form + task statement + opening report + interim examination + literature review + PPT + weekly progress + network to
- [UE4] parse JSON string
- Leetcode51.n queen
猜你喜欢
MySQL query
[source code analysis] model parallel distributed training Megatron (5) -- pipestream flush
Jenkins continuous integration environment construction V (Jenkins common construction triggers)
JVM family -- monitoring tools
Third party login initial version
New year's first race, submit bug reward more!
1day vulnerability pushback skills practice (3)
渗透实战-guest账户-mimikatz-向日葵-sql提权-离线解密
Monitoring - Prometheus introduction
Stm32bug [the project references devices, files or libraries that are not installed appear in keilmdk]
随机推荐
static hostname; transient hostname; pretty hostname
functools下的reduce函数
What is cloud primordial?
[source code analysis] model parallel distributed training Megatron (5) -- pipestream flush
What kind of experience is it when the Institute earns 20000 yuan a month!
Cache general management class + cache httpcontext Current. Cache and httpruntime Differences between caches
No clue about the data analysis report? After reading this introduction of smartbi, you will understand!
Defensive programming skills
PHP database connection succeeded, but data cannot be inserted
Zlmediakit compilation and webrtc push-pull flow testing
Sword finger offer:55 - I. depth of binary tree
(practice C language every day) pointer sorting problem
1day vulnerability pushback skills practice (3)
Database SQL statement summary, continuous update
Es network layer
智慧地铁| 云计算为城市地铁交通注入智慧
Is it really so difficult to learn redis? Today, a fan will share his personal learning materials!
【.NET+MQTT】.NET6 環境下實現MQTT通信,以及服務端、客戶端的雙邊消息訂閱與發布的代碼演示
Teach you how to optimize SQL
super_ Subclass object memory structure_ Inheritance tree traceability