Reorganize miniapp menu and fix legacy prototype React globals.

Move 安全培训扫码 under 小羚羚小程序 in the sidebar, eager-inject window.React before legacy page imports, and keep the sync script aligned with both behaviors.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
王冕
2026-06-30 16:54:36 +08:00
parent d71ebc5727
commit 098283784e
17 changed files with 66 additions and 19 deletions

View File

@@ -16,3 +16,6 @@ export function ensureOneosWebLegacyGlobals(): void {
window.ReactDOM = ReactDOM;
window.antd = antd;
}
// Legacy jsx 可能在模块顶层使用 React.createElement须在页面 import 之前完成注入。
ensureOneosWebLegacyGlobals();