diff --git a/src/App.vue b/src/App.vue index 1da4333..47664c5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,8 +2,8 @@
- - + + {{ tab.title }} @@ -148,7 +149,7 @@ export default { openBox(){ this.$router.push({ name: 'merit-box', - query: { temple_id : this.query.temple_id, open_box: 1 } + query: { temple_id : this.query.temple_id, open_box: 1, fromPathName: this.$route.name } }) }, locationTo(nav) { @@ -197,6 +198,12 @@ export default { } }, onPushForRouteName(routeName){ + if(routeName === 'merit-box'){ + return this.openBox(); + } + if(routeName === 'temple-list'){ + return this.$router.push({ name: routeName, query: { hideTab: '1'}}) + } this.$router.push({ name: routeName }) }, async getUserData(){ diff --git a/src/pages/temple-list/index.vue b/src/pages/temple-list/index.vue index b489e60..6ccbcbb 100644 --- a/src/pages/temple-list/index.vue +++ b/src/pages/temple-list/index.vue @@ -1,5 +1,5 @@