diff --git a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-navbar/coreshop-navbar.vue b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-navbar/coreshop-navbar.vue index fd51f069..c8e95ba0 100644 --- a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-navbar/coreshop-navbar.vue +++ b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-navbar/coreshop-navbar.vue @@ -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(); }