From fd5f976dcff505d589a2400c5dcde2475b1ca8b0 Mon Sep 17 00:00:00 2001 From: liuye Date: Wed, 18 May 2022 11:47:31 +0800 Subject: [PATCH] 29586 --- packages/publicity/AppJob/components/Add.vue | 3 +++ 1 file changed, 3 insertions(+) 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,