fix: 删除 debugger
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user