From fddceb5f368735651b55c9672fe6a495f7720f21 Mon Sep 17 00:00:00 2001 From: Yer <17633066053@163.com> Date: Mon, 25 Sep 2023 15:21:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20=E4=BF=AE=E5=A4=8D=E5=9C=A8h5=20?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E9=A1=B5=E9=9D=A2=E4=B8=AD=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E5=86=8D=E7=82=B9=E5=87=BB=E5=9B=9E=E9=80=80?= =?UTF-8?q?=E4=B8=8D=E7=94=9F=E6=95=88bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/m-search-revision/m-search-revision.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/components/m-search-revision/m-search-revision.vue b/components/m-search-revision/m-search-revision.vue index 4318471..9c88a6d 100644 --- a/components/m-search-revision/m-search-revision.vue +++ b/components/m-search-revision/m-search-revision.vue @@ -121,7 +121,15 @@ export default { * 回退到上一级 */ onClickLeft() { - uni.navigateBack(); + const paths = getCurrentPages(); + console.log(paths) + if(paths.length > 1){ + uni.navigateBack(); + }else{ + uni.switchTab({ + url:"/pages/tabbar/home/index" + }) + } }, /**