perf: 优化测试按钮交互

This commit is contained in:
jiangweidong
2022-07-15 15:36:31 +08:00
committed by Jiangjie.Bai
parent 0639b139d7
commit a5ea6360bd

View File

@@ -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 })
}
}
],