fix: data compatible processing

This commit is contained in:
alisa 2023-04-26 20:29:24 +08:00
parent a94e3be787
commit b2a2523210
2 changed files with 4 additions and 4 deletions

View File

@ -19,15 +19,15 @@ onMounted(()=>{
</VTabs> </VTabs>
<VWindow v-model="tab" class="mt-5"> <VWindow v-model="tab" class="mt-5">
<VWindowItem value="2"> <VWindowItem value="2">
<ProposalListItem :proposals="store.proposals['2']"/> <ProposalListItem :proposals="store?.proposals['2']"/>
</VWindowItem> </VWindowItem>
<VWindowItem value="3"> <VWindowItem value="3">
<ProposalListItem :proposals="store.proposals['3']"/> <ProposalListItem :proposals="store?.proposals['3']"/>
</VWindowItem> </VWindowItem>
<VWindowItem value="4"> <VWindowItem value="4">
<ProposalListItem :proposals="store.proposals['4']"/> <ProposalListItem :proposals="store?.proposals['4']"/>
</VWindowItem> </VWindowItem>
</VWindow> </VWindow>
</div> </div>

View File

@ -154,7 +154,7 @@ function shortName(name: string, id: string) {
<VCardTitle>Active Proposals</VCardTitle> <VCardTitle>Active Proposals</VCardTitle>
</VCardItem> </VCardItem>
<VCardItem> <VCardItem>
<ProposalListItem :proposals="store.proposals" /> <ProposalListItem :proposals="store?.proposals" />
</VCardItem> </VCardItem>
<VCardText v-if="store.proposals.length === 0">No active proposals</VCardText> <VCardText v-if="store.proposals.length === 0">No active proposals</VCardText>
</VCard> </VCard>