mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-31 08:25:35 +00:00
fix(frontend): lazy-load Stripe payment dependency
This commit is contained in:
@@ -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 }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user