修复修改密码取消后没有catch的问题

This commit is contained in:
Jerry
2024-08-16 10:18:48 +08:00
parent d39f8a6875
commit 6af5c03650
3 changed files with 5 additions and 4 deletions

View File

@@ -339,7 +339,9 @@ const handleCommand = (command: string) => {
});
break;
case 'modifyPassword':
Dialog.show('修改密码', FormModifyPassword, { area: '500px' }, {});
Dialog.show('修改密码', FormModifyPassword, { area: '500px' }, {}).catch(e => {
console.warn(e);
});
break;
case 'modifyHeadImage':
Dialog.show('修改头像', FormModifyHeadImage, { area: '500px' }, {});