From 093a1525c093f1b5cb0ea008fea8c8b464c6c06e Mon Sep 17 00:00:00 2001 From: qiqi Date: Tue, 1 Dec 2026 11:55:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(diag):=20=E5=AF=BC=E5=87=BA=20JSON=20?= =?UTF-8?q?=E5=B8=A6=E4=B8=8A=E5=BC=80=E5=85=B3=E7=8A=B6=E6=80=81=EF=BC=88?= =?UTF-8?q?=E5=90=88=E6=88=90=E5=B1=82/=E6=AF=9B=E7=8E=BB=E7=92=83?= =?UTF-8?q?=EF=BC=89=E4=B8=8E=20DOM=20=E8=A7=84=E6=A8=A1=EF=BC=8C=E4=BE=BF?= =?UTF-8?q?=E4=BA=8E=20A/B=20=E6=AF=94=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ui-settings-tab-diag.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui-settings-tab-diag.js b/src/ui-settings-tab-diag.js index 11a5072..bdda841 100644 --- a/src/ui-settings-tab-diag.js +++ b/src/ui-settings-tab-diag.js @@ -59,6 +59,11 @@ // 一起写进剪贴板 JSON —— 否则它们只在面板上,导出与日志都拿不到。 let obj = null try { obj = JSON.parse(base) } catch (e2) { obj = null } + if (obj && typeof props.diagExtras === 'function') { + // v3.26.158:把开关状态(合成层常驻提升 / 禁用毛玻璃)与 DOM 规模一并带上 —— + // 否则从导出文件里无法确认 A/B 到底按没按。 + try { obj.diagExtras = props.diagExtras() } catch (eX) { obj.diagExtrasError = String((eX && eX.message) || eX) } + } if (obj && typeof props.diagDetail === 'function') { try { obj.diagDetail = await props.diagDetail() } catch (e3) { obj.diagDetailError = String((e3 && e3.message) || e3) } }