fix: 1.1.70 修复 ?? 混 || 导致启用 failed to import

Web 启用时 SyntaxError,Cordis 报 failed to import。顺带加 overlay 入口,官方锚点缺失时仍能打开清洗面板。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
叫我小杨同学andCursor committed 2026-10-11 18:18:42 +08:00
1 parent 64d2bc27c6
commit e9eb980466
2 files changed
+19 -3

No files matched your search

+2 -2
View File
@@ -1795,9 +1795,9 @@ function installWebServer(ctx, cfg) {
patches_applied: state.ai_base ? (state.display_applied ?? state.patches_applied) : 0,
patches_pending: state.display_pending ?? state.patches_pending,
patches_skipped: state.display_skipped ?? state.patches_skipped ?? 0,
patches_ready: (state.display_ready ?? state.patches_ready) || 0,
patches_ready: state.display_ready ?? state.patches_ready ?? 0,
patches_na: state.patches_na || 0,
patches_total: state.ai_base ? (state.display_total ?? state.patches_total || 0) : 0,
patches_total: state.ai_base ? (state.display_total ?? state.patches_total ?? 0) : 0,
patches_lost: reapply.patchesLostAfterHostReset(),
patch_status: state.patch_status,
patches: (state.display_patches || []).map((p) => ({