diff --git a/packages/publicity/AppJob/components/Add.vue b/packages/publicity/AppJob/components/Add.vue index a37f6495..ca23e444 100644 --- a/packages/publicity/AppJob/components/Add.vue +++ b/packages/publicity/AppJob/components/Add.vue @@ -118,6 +118,7 @@ export default { linkName: [{ required: true, message: '请输入联系人', trigger: 'change' }], linkPhone: [{ required: true, message: '请输入联系方式', trigger: 'change' }], }, + flag: true } }, // 计算 @@ -148,8 +149,10 @@ export default { // 确定新增 confirm() { + if(!this.flag) return this.$refs['ruleForm'].validate((valid) => { if (valid) { + this.flag = false this.instance .post(`/app/appjob/addOrUpdate`, { title: this.formData.title,