feat: Add new payment completion and failure routes, update donation handling in DonationForm and related components

This commit is contained in:
2025-04-24 13:55:26 -04:00
parent af80f30f7a
commit 3a6ee307cd
9 changed files with 120 additions and 164 deletions

View File

@@ -52,12 +52,9 @@ const route = useRoute();
const { t } = useI18n();
function goBack() {
const returnUrl = route.query.returnUrl;
if (returnUrl) {
router.push(returnUrl);
} else {
router.back();
}
// Navigate back to the creator's page
const creatorName = route.params.creator?.split('/')[0] || '';
router.push(`/@${creatorName}`);
}
</script>