From 1d66fb4d6143866f910203dc3d040ebdc6a7eb46 Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Wed, 2 Sep 2020 15:41:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=B8=80=E4=B8=8B=E5=8A=A0?= =?UTF-8?q?=E8=BD=BDloading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/honest/newshonest-add-or-update.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/modules/honest/newshonest-add-or-update.vue b/src/views/modules/honest/newshonest-add-or-update.vue index 21e1178..93192eb 100644 --- a/src/views/modules/honest/newshonest-add-or-update.vue +++ b/src/views/modules/honest/newshonest-add-or-update.vue @@ -378,6 +378,7 @@ export default { }, // 表单提交 dataFormSubmitHandle: debounce(function () { + this.loading = true this.dataForm.newsProperty = this.$refs.newsCateroryName.selectedLabel this.dataForm.newsColumn = this.$refs.newsSubCateroryName.selectedLabel this.dataForm.newsApprovalState = '0' @@ -403,7 +404,10 @@ export default { this.dataForm = {} } }) - }).catch(() => { }) + this.loading = false + }).catch(() => { + this.loading = false + }) }) }, 1000, { 'leading': true, 'trailing': false }) },