Commit 9bba0d8c authored by chenqikuai's avatar chenqikuai

fix:防止用户一直长按

parent 441db7b7
......@@ -89,6 +89,8 @@ export default class Detail extends Vue {
@Prop({})
private detailStr!:string;
private lockSaveChain = false
get addOrTemplate() {
const { templateId, proofName } = this;
return {
......@@ -359,8 +361,11 @@ export default class Detail extends Vue {
this.goProofList();
}
private async saveAndChain() {
if(this.lockSaveChain) return;
this.lockSaveChain = true;
await this.submit(true);
this.goProofList();
this.lockSaveChain = false
}
private async delIncrementProof() {
await this.$api.proof.incrementDelete(this.id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment