mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-22 05:56:45 +08:00
页面缓存
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
<div id="app">
|
<div id="app">
|
||||||
<!--实现路由切换动画-->
|
<!--实现路由切换动画-->
|
||||||
<transition :name="transitionName">
|
<transition :name="transitionName">
|
||||||
<keep-alive include="StoreDetail" v-if="isRouterAlive">
|
<keep-alive include="StoreDetail">
|
||||||
<RouterView />
|
<RouterView v-if="isRouterAlive" />
|
||||||
</keep-alive>
|
</keep-alive>
|
||||||
|
|
||||||
<!-- <keep-alive>
|
<!-- <keep-alive>
|
||||||
@@ -17,7 +17,8 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
transitionName: ''
|
transitionName: '',
|
||||||
|
isRouterAlive: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
provide() {
|
provide() {
|
||||||
|
|||||||
Reference in New Issue
Block a user