AI 回滚 EQ 时同样检查 HP-EQ 是否已开启

应用与回滚统一在 peqEnable 未开启时弹出确认框。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
allen2fuc
2026-07-06 15:06:20 +08:00
parent 8a358d10e3
commit fe08efa74a
+1 -2
View File
@@ -699,8 +699,7 @@ export default function AIPage({ variant = "page", onClose }: AIPageProps = {})
toast.error(aiText.deviceDisconnected);
return;
}
const nextApplied = !msg.applied;
if (nextApplied && (deviceState?.peqEnable ?? 0) !== 1) {
if ((deviceState?.peqEnable ?? 0) !== 1) {
setPendingApplyMsg(msg);
return;
}