Commit 13e96747 authored by yyh's avatar yyh

代码调整

parent d1c7e6d2
......@@ -95,6 +95,7 @@ export default class Proof extends Vue {
});
}
private goProofDetail(proof: any) {
const { id: proofId } = proof;
const toBlockStatuss: ChainStatus[] = [
ChainStatus.SUCCESS,
ChainStatus.HIDED,
......@@ -104,7 +105,7 @@ export default class Proof extends Vue {
if (toBlockStatuss.includes(proof.status) ) {
this.goToBrowser(proof);
} else {
this.$router.push({ name: 'ProofDetail', query: { proofId: proof.id }});
this.$router.push({ name: 'ProofDetail', query: { proofId }});
}
}
private async copyProof(proof: any) {
......@@ -156,10 +157,9 @@ export default class Proof extends Vue {
this.showAddProof = true;
this.isZengliang = true;
}
private hide(proofId: number) {
this.$api.proof.deleteBlockChainProof(proofId).then(() => {
private async hide(proof: any) {
await this.$api.proof.deleteBlockChainProof(proof.id);
this.$toast('隐藏成功');
this.resetList();
});
}
}
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