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:
@@ -16,3 +16,6 @@ export function ensureOneosWebLegacyGlobals(): void {
|
||||
window.ReactDOM = ReactDOM;
|
||||
window.antd = antd;
|
||||
}
|
||||
|
||||
// Legacy jsx 可能在模块顶层使用 React.createElement,须在页面 import 之前完成注入。
|
||||
ensureOneosWebLegacyGlobals();
|
||||
|
||||
Reference in New Issue
Block a user