Commit b50101aae68252d4dad924f76de911013d7c171f
Merge branch 'fix/DEFECT-2065' into 'main_dev'
fix: 修复客户账号清除密码后,点击进入后,修改密码界面为首页,应该为修改密码界面 See merge request yunteng/thingskit-front!1319
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 { | ... | ... |