mirror of
https://github.com/sunniejs/vue-h5-template.git
synced 2025-04-06 03:57:50 +08:00
fix keep-alive not working
This commit is contained in:
parent
c2109f0e78
commit
cad3950657
@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<div class="layout-content">
|
||||
<keep-alive v-if="$route.meta.keepAlive">
|
||||
<router-view></router-view>
|
||||
<keep-alive>
|
||||
<router-view v-if="$route.meta.keepAlive"></router-view>
|
||||
</keep-alive>
|
||||
<router-view v-else></router-view>
|
||||
<router-view v-if="!$route.meta.keepAlive"></router-view>
|
||||
</div>
|
||||
<div class="layout-footer">
|
||||
<TabBar :data="tabbars" @change="handleChange" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user