mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-16 00:36:43 +08:00
商品商城优化
This commit is contained in:
10
src/App.vue
10
src/App.vue
@@ -2,8 +2,8 @@
|
||||
<div id="app">
|
||||
<!--实现路由切换动画-->
|
||||
<transition :name="transitionName">
|
||||
<keep-alive include="StoreDetail">
|
||||
<RouterView v-if="isRouterAlive" />
|
||||
<keep-alive include="StoreList">
|
||||
<RouterView v-if="isRouterAlive" />
|
||||
</keep-alive>
|
||||
|
||||
<!-- <keep-alive>
|
||||
@@ -18,15 +18,15 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
transitionName: '',
|
||||
isRouterAlive: true
|
||||
isRouterAlive: true
|
||||
}
|
||||
},
|
||||
provide() {
|
||||
provide() {
|
||||
return {
|
||||
reload: this.reload
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
methods: {
|
||||
reload() {
|
||||
this.isRouterAlive = false
|
||||
this.$nextTick(() => {
|
||||
|
||||
Reference in New Issue
Block a user