ui: fix 404 on login after forgot password (#12448)

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2026-01-19 13:20:07 +05:30 committed by GitHub
parent 76e6de7f90
commit a4b1a27c7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ export default {
api('forgotPassword', {}, 'POST', loginParams) api('forgotPassword', {}, 'POST', loginParams)
.finally(() => { .finally(() => {
this.$message.success(this.$t('message.forgot.password.success')) this.$message.success(this.$t('message.forgot.password.success'))
this.$router.push({ path: '/login' }).catch(() => {}) this.$router.replace({ path: '/user/login' })
}) })
}).catch(error => { }).catch(error => {
this.formRef.value.scrollToField(error.errorFields[0].name) this.formRef.value.scrollToField(error.errorFields[0].name)