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