Commit 302f5c33c98623d46ad347a59fc5195c03888c98
1 parent
b289da6c
fix: 修复客户账号清除密码后,点击进入后,修改密码界面为首页,应该为修改密码界面
Showing
1 changed file
with
8 additions
and
4 deletions
... | ... | @@ -207,10 +207,14 @@ |
207 | 207 | } |
208 | 208 | |
209 | 209 | const handleClearPassword = async (record: Recordable) => { |
210 | - const { id } = record; | |
211 | - if (!id) return; | |
212 | - const { message } = await clearUserPassword(id, 3); | |
213 | - createMessage.success(message); | |
210 | + try { | |
211 | + const { id } = record; | |
212 | + if (!id) return; | |
213 | + const { message } = await clearUserPassword(id, 3); | |
214 | + createMessage.success(message); | |
215 | + } finally { | |
216 | + handleSuccess(); | |
217 | + } | |
214 | 218 | }; |
215 | 219 | |
216 | 220 | return { | ... | ... |