Commit df52bf2bd557b393de38b65e5272fd27aec2d3d5
1 parent
6d50e0f4
fix: 修改清空租户管理员密码后直接进入 跳转页面不是重置密码的界面 而是该租户管理员的首页
Showing
1 changed file
with
6 additions
and
3 deletions
... | ... | @@ -154,10 +154,13 @@ |
154 | 154 | } |
155 | 155 | |
156 | 156 | function handleResetPassword(record: Recordable) { |
157 | - resetPassword(record.id).then(() => { | |
158 | - createMessage.success('清空密码成功'); | |
157 | + try { | |
158 | + resetPassword(record.id).then(() => { | |
159 | + createMessage.success('清空密码成功'); | |
160 | + }); | |
161 | + } finally { | |
159 | 162 | handleSuccess(); |
160 | - }); | |
163 | + } | |
161 | 164 | } |
162 | 165 | function handleSendMsg(record: Recordable) { |
163 | 166 | const req = new SendResetPasswordEmailMsg(record.id, MessageTypeEnum.PHONE_MESSAGE); | ... | ... |