Files
MonkeyCode/frontend/index.html
T
MonsterandClaude Sonnet 4.6 fc92fb337c fix(captcha): 修复 WebView 里 cap.js WASM 走 CDN 导致验证码失败
cap.js 模块级代码早于 main.tsx body 执行,此时 window.CAP_CUSTOM_WASM_URL
还未赋值,导致 cap.js 使用 cdn.jsdelivr.net(国内不稳定)。

将赋值移到 index.html 的内联 script,确保在所有模块代码之前执行。
同时删除 main.tsx 中的重复赋值,并为 captchaChallenge 加上错误日志。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 14:47:48 +08:00

33 lines
1.5 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/logo.png" />
<script src="/iconfont.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MonkeyCode 智能开发平台</title>
<!-- SEO 元标签 -->
<meta name="description" content="MonkeyCode AI 是一个智能代码生成平台,通过AI驱动的编程助手、自动化工作流和智能开发工具,帮助开发者更快速地构建应用程序。" />
<meta name="keywords" content="AI代码生成, 智能编程, 开发者工具, 自动化编程, 代码助手, AI开发平台, MonkeyCode, 人工智能编程" />
<meta name="author" content="MonkeyCode AI" />
<meta name="robots" content="index, follow" />
<link rel="canonical" href="https://monkeycode-ai.com" />
<!-- 必须在所有模块代码之前设置,确保 cap.js 使用本地 WASM 而非 CDN(jsdelivr.net 在国内不稳定) -->
<script>window.CAP_CUSTOM_WASM_URL = location.origin + "/captcha/cap_wasm.js";</script>
</head>
<body>
<div id="root" class="font-google-sans-code"></div>
<script type="module" src="/src/main.tsx"></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-RQQN0BK11M"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-RQQN0BK11M');
</script>
</body>
</html>