mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-02-05 04:59:48 +08:00
uniapp【修复】: 修复扫码跳转页面后点击反击箭头返回首页
This commit is contained in:
@@ -46,9 +46,14 @@
|
|||||||
const hanlderBack = () => {
|
const hanlderBack = () => {
|
||||||
if (props.handleCustomRouteJump) {
|
if (props.handleCustomRouteJump) {
|
||||||
props.handleCustomRouteJump();
|
props.handleCustomRouteJump();
|
||||||
} else {
|
return;
|
||||||
uni.navigateBack();
|
|
||||||
}
|
}
|
||||||
|
const pages = getCurrentPages()
|
||||||
|
if (pages.length === 1) {
|
||||||
|
handleRouteSwitchTab(RouteSwitchTabEnum.home);
|
||||||
|
return
|
||||||
|
}
|
||||||
|
uni.navigateBack();
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user