fix: reset userSettings first login

This commit is contained in:
jialin
2025-12-25 13:14:59 +08:00
parent 73b987358f
commit 9dcdb6b6e7
10 changed files with 60 additions and 23 deletions
@@ -1,4 +1,5 @@
import { initialPasswordAtom, userAtom } from '@/atoms/user';
import { resetStorageUserSettings } from '@/atoms/utils';
import SealInput from '@/components/seal-form/seal-input';
import { PasswordReg } from '@/config';
import {
@@ -43,6 +44,7 @@ const PasswordForm: React.FC = () => {
});
setInitialPassword('');
// Reset first login flag
resetStorageUserSettings();
writeState(IS_FIRST_LOGIN, null);
gotoDefaultPage(userInfo);
message.success(intl.formatMessage({ id: 'common.message.success' }));