From c3eb1db619d918603804b0f3f6b8c096891f3500 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Thu, 6 Jan 2022 17:38:44 +0800 Subject: [PATCH] 26412 --- .../3.0.0/AppVillagerDiscussion/components/Add.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 }) } })