diff --git a/pages/home/index.vue b/pages/home/index.vue index 8a130af..f23c8ab 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -503,9 +503,11 @@ import request,{host} from '@/common/request' } }, toPage(url){ - uni.navigateTo({ - url:`/${url}`.replace(/\/\//g,'/') - }) + if(/pages\/massif\/index$/.test(url)){ + uni.switchTab({url:"/pages\/massif\/index"}) + }else{ + uni.navigateTo({ url:`/${url}`.replace(/\/\//g, '/') }) + } }, //重新定位 refreshPosition(){