From f4732ec5946fdf4a43735b6eb26f949e02cbf3a7 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sat, 28 Oct 2023 09:04:47 +0800 Subject: [PATCH] change the field name --- src/modules/[chain]/gov/[proposal_id].vue | 6 +++--- src/types/gov.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/[chain]/gov/[proposal_id].vue b/src/modules/[chain]/gov/[proposal_id].vue index c8371869..c96e7b87 100644 --- a/src/modules/[chain]/gov/[proposal_id].vue +++ b/src/modules/[chain]/gov/[proposal_id].vue @@ -45,10 +45,10 @@ store.fetchProposal(props.proposal_id).then((res) => { proposalDetail.content?.changes.forEach((item) => { chainStore.rpc.getParams(item.subspace, item.key).then((res) => { if(proposal.value.content && res.param) { - if(proposal.value.content.origin){ - proposal.value.content.origin.push(res.param); + if(proposal.value.content.current){ + proposal.value.content.current.push(res.param); } else { - proposal.value.content.origin = [res.param]; + proposal.value.content.current = [res.param]; }; } }) diff --git a/src/types/gov.ts b/src/types/gov.ts index af84e43a..ead2546e 100644 --- a/src/types/gov.ts +++ b/src/types/gov.ts @@ -28,7 +28,7 @@ export interface GovProposal { '@type': string; title?: string; description?: string; - origin?: any[] + current?: any[]; changes?: any[]; plan?: { height?: string | number;