代码优化

This commit is contained in:
dqjdda
2019-12-01 20:34:38 +08:00
parent 48113c84c8
commit bb6389d102
3 changed files with 17 additions and 6 deletions

View File

@@ -103,8 +103,7 @@ export default {
this.$refs['form'].validate((valid) => {
if (valid) {
this.loading = true
this.user = { email: this.form.email, password: this.form.pass }
updateEmail(this.form.code, this.user).then(res => {
updateEmail(this.form).then(res => {
this.loading = false
this.resetForm()
this.$notify({

View File

@@ -347,6 +347,13 @@ export default {
getLevel().then(res => {
this.level = res.level
}).catch(() => {})
},
addSuccessNotify() {
this.$notify({
title: '新增成功默认密码123456',
type: 'success',
duration: 2500
})
}
}
}