功能完善

This commit is contained in:
2024-04-13 19:15:20 +08:00
parent 23af4c25e3
commit d6f3f9c812
5 changed files with 11 additions and 8 deletions

View File

@@ -43,8 +43,11 @@ const fetchAddressList = async () => {
};
const onChecked = (e: any) => {
uni.navigateBack();
userStore.setDeliveryAddress(e);
const pages = getCurrentPages();
if(pages.length > 2 && pages[pages.length - 2].route?.includes('pages/mall/subs/order/order-confirm')) {
userStore.setDeliveryAddress(e);
uni.navigateBack();
}
};
</script>