Commit 4106a072 authored by 罗超's avatar 罗超

修改跳转问题

parent e4e1278a
...@@ -1681,9 +1681,17 @@ ...@@ -1681,9 +1681,17 @@
}) })
}, },
goback() { goback() {
uni.navigateBack({ const currentRouters = getCurrentPages()
delta: 1, if(currentRouters.length>1){
}); uni.navigateBack({
delta: 1,
});
}else{
uni.redirectTo({
url:'/pages/index/index'
})
}
}, },
scroll(e) { scroll(e) {
this.boxOption = Math.floor((e.detail.scrollTop - 50) / 1.5); this.boxOption = Math.floor((e.detail.scrollTop - 50) / 1.5);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment