confirm() { if(! this.choosenum) {return; } if(this.issubmit){ this.$toast.showError('Do not click more than once'); return false}// Checking this.issubmit=true; this.$post("agreeJoinApi", {groupID: this.groupID}).then(res => {if(res.error.returnCode * 1 ! == 0) {this.$toast.showError(res.error.returnUserMessage);return; }// do not confirm this.issubmit=false; this.$toast.showSuccess("Audit successful", 1000); // Refresh page this.$toast.removeLoading(); this.getlist(); this.choosenum = 0; },() => {this.$toast.showError("Exception error"); }); },Copy the code