uniapp 历史页面回退到指定页面。
getCurrentPages()
内容如下
let delta = getCurrentPages().reverse().findIndex(item => item.route ==="pages/popularScience/daodi")
if(delta===-1){uni.navigateTo({url: '/pages/popularScience/daodi',success: res => {},fail: () => {},complete: () => {}});
}else{uni.navigateBack({delta: delta});
}