cleaning message/confirm usage
This commit is contained in:
@@ -34,16 +34,10 @@ export default {
|
||||
async change_password () {
|
||||
try {
|
||||
await this.$axios.$post('/user/recover_password', { recover_code: this.code, password: this.new_password })
|
||||
this.$root.$message({
|
||||
type: 'success',
|
||||
message: this.$t('common.password_updated')
|
||||
})
|
||||
this.$root.$message('common.password_updated', { color: 'success' })
|
||||
this.$router.replace('/login')
|
||||
} catch (e) {
|
||||
this.$root.$message({
|
||||
type: 'warning',
|
||||
message: e
|
||||
})
|
||||
this.$root.$message(e, { color: 'warning' })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user