商品商城优化

This commit is contained in:
mengxiaolong
2020-09-08 10:57:28 +08:00
parent c1c8e3a768
commit abcbbe939d
4 changed files with 105 additions and 66 deletions

View File

@@ -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(() => {