代码优化
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -347,6 +347,13 @@ export default {
|
||||
getLevel().then(res => {
|
||||
this.level = res.level
|
||||
}).catch(() => {})
|
||||
},
|
||||
addSuccessNotify() {
|
||||
this.$notify({
|
||||
title: '新增成功,默认密码:123456',
|
||||
type: 'success',
|
||||
duration: 2500
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user