fix: 删除 debugger

This commit is contained in:
hzm
2026-02-23 23:47:24 +08:00
parent 62180be8ac
commit fe1f67407d
2 changed files with 2 additions and 3 deletions

View File

@@ -1568,7 +1568,6 @@ export default function HomePage() {
setLoginError(''); setLoginError('');
} }
// 仅在明确的登录动作SIGNED_IN时检查冲突INITIAL_SESSION刷新页面等不检查直接以云端为准 // 仅在明确的登录动作SIGNED_IN时检查冲突INITIAL_SESSION刷新页面等不检查直接以云端为准
debugger
fetchCloudConfig(session.user.id, isExplicitLogin); fetchCloudConfig(session.user.id, isExplicitLogin);
}; };
@@ -2405,7 +2404,6 @@ export default function HomePage() {
if (localComparable !== cloudComparable) { if (localComparable !== cloudComparable) {
// 如果数据不一致 // 如果数据不一致
if (checkConflict) { if (checkConflict) {
debugger
// 只有明确要求检查冲突时才提示(例如刚登录时) // 只有明确要求检查冲突时才提示(例如刚登录时)
setCloudConfigModal({ open: true, userId, type: 'conflict', cloudData: data.data }); setCloudConfigModal({ open: true, userId, type: 'conflict', cloudData: data.data });
return; return;

View File

@@ -12,7 +12,8 @@ const config = [
...nextCoreWebVitals, ...nextCoreWebVitals,
{ {
rules: { rules: {
'react-hooks/set-state-in-effect': 'off' 'react-hooks/set-state-in-effect': 'off',
'no-debugger': 'error'
} }
} }
]; ];