fix(frontend): lazy-load Stripe payment dependency

This commit is contained in:
wucm667
2026-07-16 23:21:58 +08:00
parent bc2244c83f
commit 08e994ad86
6 changed files with 42 additions and 4 deletions
@@ -111,7 +111,7 @@ let elementsInstance: StripeElements | null = null
onMounted(async () => {
try {
const { loadStripe } = await import('@stripe/stripe-js')
const { loadStripe } = await import('@stripe/stripe-js/pure')
const stripe = await loadStripe(props.publishableKey)
if (!stripe) { initError.value = t('payment.stripeLoadFailed'); return }