Make the prefetch supports typescript and opengraph.

 Use prefetch in Solarpass pfp
This commit is contained in:
2025-08-02 22:15:06 +08:00
parent be7d7536fc
commit 665538bdd3
11 changed files with 90 additions and 11 deletions

View File

@@ -116,8 +116,8 @@ const rules: FormRules = {
}
// Get captcha provider and API key from global data
const captchaProvider = ref((window as any).__APP_DATA__?.Provider || '')
const captchaApiKey = ref((window as any).__APP_DATA__?.ApiKey || '')
const captchaProvider = ref(window.DyPrefetch?.provider || '')
const captchaApiKey = ref(window.DyPrefetch?.api_key || '')
const onCaptchaVerified = (token: string) => {
formModel.captchaToken = token