fix(payment): allow Stripe payment pages to bypass router auth guard

Stripe payment routes (/payment/stripe, /payment/stripe-popup) are
reached via hard navigation (window.location.href), which caused
the router guard to block access before the page could load.
Set requiresAuth and requiresPayment to false, consistent with
/payment/result. Backend API still enforces authentication.
This commit is contained in:
shaw
2026-04-25 21:38:40 +08:00
parent 3af9940b85
commit c1b52615be

View File

@@ -299,11 +299,11 @@ const routes: RouteRecordRaw[] = [
name: 'StripePayment',
component: () => import('@/views/user/StripePaymentView.vue'),
meta: {
requiresAuth: true,
requiresAuth: false,
requiresAdmin: false,
title: 'Stripe Payment',
titleKey: 'payment.stripePay',
requiresPayment: true
requiresPayment: false
}
},
{
@@ -311,10 +311,10 @@ const routes: RouteRecordRaw[] = [
name: 'StripePopup',
component: () => import('@/views/user/StripePopupView.vue'),
meta: {
requiresAuth: true,
requiresAuth: false,
requiresAdmin: false,
title: 'Payment',
requiresPayment: true
requiresPayment: false
}
},
{