uniapp【修复】: 修复扫码跳转页面后点击反击箭头返回首页

This commit is contained in:
21世纪小八路
2024-11-02 15:38:04 +08:00
parent 03c96cd85d
commit c91157925f

View File

@@ -46,9 +46,14 @@
const hanlderBack = () => {
if (props.handleCustomRouteJump) {
props.handleCustomRouteJump();
} else {
uni.navigateBack();
return;
}
const pages = getCurrentPages()
if (pages.length === 1) {
handleRouteSwitchTab(RouteSwitchTabEnum.home);
return
}
uni.navigateBack();
}
</script>