diff --git a/packages/party/partyMember/components/Add.vue b/packages/party/partyMember/components/Add.vue index 3c963ceb..33934df5 100644 --- a/packages/party/partyMember/components/Add.vue +++ b/packages/party/partyMember/components/Add.vue @@ -967,7 +967,7 @@ export default { starTime: this.jobForm.date[0], endTime: this.jobForm.date[1], })) - if (!!this.jobId) { + if (this.jobId != "") { this.form.workInfoList.splice(this.jobId, 1, info) } else { this.form.workInfoList.push(info) @@ -980,7 +980,7 @@ export default { this.$refs.starForm.validate((valid) => { if (valid) { let info = JSON.parse(JSON.stringify(this.starForm)) - if (!!this.starId) { + if (this.starId != "") { this.form.starList.splice(this.starId, 1, info) } else { this.form.starList.push(info) @@ -993,7 +993,7 @@ export default { this.$refs.disciplinaryForm.validate((valid) => { if (valid) { let info = JSON.parse(JSON.stringify(this.disciplinaryForm)) - if (!!this.disciplinaryId) { + if (this.disciplinaryId != "") { this.form.disciplinaryInfoList.splice(this.disciplinaryId, 1, info) } else { this.form.disciplinaryInfoList.push(info)