- 引入 useRuntimeConfig() 以获取环境变量- 使用 Nuxt 配置中的 API_BASE_URL 替代 window.location.origin - 更新 return_url 为绝对路径,确保在不同环境中的一致性 |
||
---|---|---|
.. | ||
checkoutPage | ||
completePage | ||
external | ||
result | ||
index.vue |
- 引入 useRuntimeConfig() 以获取环境变量- 使用 Nuxt 配置中的 API_BASE_URL 替代 window.location.origin - 更新 return_url 为绝对路径,确保在不同环境中的一致性 |
||
---|---|---|
.. | ||
checkoutPage | ||
completePage | ||
external | ||
result | ||
index.vue |