From 184bc08edc992edb268ab01d66333df2ba550a2b Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Tue, 19 Nov 2024 15:03:36 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/index.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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(){