From fe1f67407dd3294317f39c2c4b04c720e11af828 Mon Sep 17 00:00:00 2001 From: hzm <934585316@qq.com> Date: Mon, 23 Feb 2026 23:47:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=20debugger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/page.jsx | 2 -- eslint.config.mjs | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/page.jsx b/app/page.jsx index 924fcc1..18cce57 100644 --- a/app/page.jsx +++ b/app/page.jsx @@ -1568,7 +1568,6 @@ export default function HomePage() { setLoginError(''); } // 仅在明确的登录动作(SIGNED_IN)时检查冲突;INITIAL_SESSION(刷新页面等)不检查,直接以云端为准 - debugger fetchCloudConfig(session.user.id, isExplicitLogin); }; @@ -2405,7 +2404,6 @@ export default function HomePage() { if (localComparable !== cloudComparable) { // 如果数据不一致 if (checkConflict) { - debugger // 只有明确要求检查冲突时才提示(例如刚登录时) setCloudConfigModal({ open: true, userId, type: 'conflict', cloudData: data.data }); return; diff --git a/eslint.config.mjs b/eslint.config.mjs index 0857f77..e202ad9 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -12,7 +12,8 @@ const config = [ ...nextCoreWebVitals, { rules: { - 'react-hooks/set-state-in-effect': 'off' + 'react-hooks/set-state-in-effect': 'off', + 'no-debugger': 'error' } } ];