diff --git a/package1/order/orderConfirm.vue b/package1/order/orderConfirm.vue index 263c8d5..fcafe0f 100644 --- a/package1/order/orderConfirm.vue +++ b/package1/order/orderConfirm.vue @@ -55,7 +55,12 @@ }); }, back() { - uni.navigateBack() + const pages = getCurrentPages(); + if (pages.length > 1) { + uni.navigateBack(); + } else { + uni.switchTab({ url: '/pages/index/index' }); + } } }