feat(itchat): improve login session handling and error reporting

This commit is contained in:
fdc310
2026-07-02 14:40:13 +08:00
parent d4e8ccd161
commit 0cce418956
4 changed files with 30 additions and 22 deletions
@@ -624,7 +624,10 @@ export default function DynamicFormComponent({
onSuccess={(credentials) => {
for (const [key, value] of Object.entries(credentials)) {
if (value) {
form.setValue(key as keyof FormValues, value as never);
form.setValue(key as keyof FormValues, value as never, {
shouldDirty: true,
shouldValidate: true,
});
}
}
}}