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" + }) + } }, /**