diff --git a/src/views/liabilityInsurance/insuredPage.vue b/src/views/liabilityInsurance/insuredPage.vue index 550ad32c..ba5d466c 100644 --- a/src/views/liabilityInsurance/insuredPage.vue +++ b/src/views/liabilityInsurance/insuredPage.vue @@ -65,6 +65,7 @@ export default { return { showPoup: false, used:false, + saveLoading: true, } }, async mounted() { @@ -73,12 +74,19 @@ export default { }, methods: { async saveHandle() { - await sendInsuranceEmail(); - this.$toast('操作成功'); - this.showPoup=false - setTimeout(()=>{ - this.goBack() - },1500) + if( this.saveLoading ) { + try { + this.saveLoading = false; + await sendInsuranceEmail(); + this.$toast('操作成功'); + this.showPoup = false + setTimeout(() => { + this.goBack() + }, 1500) + } finally { + this.saveLoading = true; + } + } }, } }