diff --git a/packages/3.0.0/AppVillagerDiscussion/components/Add.vue b/packages/3.0.0/AppVillagerDiscussion/components/Add.vue index c549b11f..5daf6635 100644 --- a/packages/3.0.0/AppVillagerDiscussion/components/Add.vue +++ b/packages/3.0.0/AppVillagerDiscussion/components/Add.vue @@ -75,7 +75,7 @@ @@ -107,6 +107,7 @@ anonymity: '1', images: [] }, + isLoading: false, keys: ['A', 'B', 'C', 'D', 'E', 'F', 'G'], id: '' } @@ -182,7 +183,7 @@ } } } - + this.isLoading = true this.instance.post(`/app/appvillagediscuss/addOrUpdate`, { ...this.form, createUserId: this.user.info.id, @@ -192,9 +193,12 @@ if (res.code == 0) { this.$message.success('提交成功') setTimeout(() => { + this.isLoading = false this.cancel(true) - }, 600) + }, 300) } + }).catch(() => { + this.isLoading = false }) } })