cleaning message/confirm usage

This commit is contained in:
les
2020-10-07 11:12:13 +02:00
parent a67751928c
commit 3616eeefe5
20 changed files with 53 additions and 287 deletions

View File

@@ -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' })
}
}
}