Showing
1 changed file
with
4 additions
and
3 deletions
| ... | ... | @@ -131,9 +131,10 @@ |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | function handleResetPassword(record: Recordable) { |
| 134 | - resetPassword(record.id); | |
| 135 | - createMessage.success('清空密码成功'); | |
| 136 | - handleSuccess(); | |
| 134 | + resetPassword(record.id).then(() => { | |
| 135 | + createMessage.success('清空密码成功'); | |
| 136 | + handleSuccess(); | |
| 137 | + }); | |
| 137 | 138 | } |
| 138 | 139 | function handleSendMsg(record: Recordable) { |
| 139 | 140 | const req = new SendResetPasswordEmailMsg(record.id, MessageTypeEnum.PHONE_MESSAGE); | ... | ... |