Commit 1cf7e222 by zhengjie

Detail optimization

parent 90047c10
...@@ -35,16 +35,20 @@ export default { ...@@ -35,16 +35,20 @@ export default {
}, },
data() { data() {
const validatePass = (rule, value, callback) => { const validatePass = (rule, value, callback) => {
validPass(value).then(res => { if (value === '' || value === null) {
if (res.status === 200) { callback(new Error('密码不能为空'))
callback() } else {
} else { validPass(value).then(res => {
callback(new Error('密码错误,请重新输入')) if (res.status === 200) {
} callback()
}) } else {
callback(new Error('密码错误,请重新输入'))
}
})
}
} }
const validMail = (rule, value, callback) => { const validMail = (rule, value, callback) => {
if (value === '') { if (value === '' || value === null) {
callback(new Error('新邮箱不能为空')) callback(new Error('新邮箱不能为空'))
} else if (value === this.email) { } else if (value === this.email) {
callback(new Error('新邮箱不能与旧邮箱相同')) callback(new Error('新邮箱不能与旧邮箱相同'))
......
...@@ -194,7 +194,7 @@ export default { ...@@ -194,7 +194,7 @@ export default {
}) })
}, },
getJobs(id) { getJobs(id) {
this.jobId=null this.jobId = null
getAllJob(id).then(res => { getAllJob(id).then(res => {
this.jobs = res.content this.jobs = res.content
}).catch(err => { }).catch(err => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment