From a5ea6360bd469764b2e3996ada95b6ef5becd180 Mon Sep 17 00:00:00 2001 From: jiangweidong Date: Fri, 15 Jul 2022 15:36:31 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/settings/SMS/CMPP2.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/settings/SMS/CMPP2.vue b/src/views/settings/SMS/CMPP2.vue index 729745ebf..d43f226e0 100644 --- a/src/views/settings/SMS/CMPP2.vue +++ b/src/views/settings/SMS/CMPP2.vue @@ -20,7 +20,9 @@ export default { moreButtons: [ { title: this.$t('common.Test'), - callback: function(value, form) { + loading: false, + callback: function(value, form, btn) { + btn.loading = true vm.$axios.post( `/api/v1/settings/sms/cmpp2/testing/`, value @@ -28,7 +30,7 @@ export default { vm.$message.success(res['msg']) }).catch(() => { vm.$log.error('err occur') - }) + }).finally(() => { btn.loading = false }) } } ],