diff --git a/components/base/navbar.vue b/components/base/navbar.vue index 909f33c..5bc527a 100644 --- a/components/base/navbar.vue +++ b/components/base/navbar.vue @@ -4,8 +4,14 @@ + + + @@ -72,9 +78,18 @@ }, data() { return { + length : getCurrentPages().length }; }, methods : { + toHome(){ + if(this.length != 1){ + return + } + uni.reLaunch({ + url: '/pages/index/index' + }) + } } } diff --git a/components/tourGuide/selectionPopup.vue b/components/tourGuide/selectionPopup.vue index 1662cf9..e22a3e0 100644 --- a/components/tourGuide/selectionPopup.vue +++ b/components/tourGuide/selectionPopup.vue @@ -1,6 +1,10 @@