代码优化

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({