diff --git a/components/NavBar.vue b/components/NavBar.vue index 39ef8fe..5866e3d 100644 --- a/components/NavBar.vue +++ b/components/NavBar.vue @@ -34,11 +34,17 @@ } else if (this.inner2) { this.$emit('goIn') } else { - uni.navigateBack() + uni.redirectTo({ + url: '/pages/home/home' + }) + // uni.navigateBack() } }, backHome () { - uni.navigateBack() + uni.redirectTo({ + url: '/pages/home/home' + }) + // uni.navigateBack() } } }