This commit is contained in:
liangping 2023-06-17 20:18:57 +08:00
parent 2f7d2c4ff5
commit 3b2c658340
2 changed files with 5 additions and 7 deletions

View File

@ -9,12 +9,10 @@ const props = defineProps({
});
const txs = computed(() => {
return (
props.value?.map((x) => ({
hash: hashTx(fromBase64(x)),
tx: decodeTxRaw(fromBase64(x)),
})) || []
);
return props.value?.map((x) => ({
hash: hashTx(fromBase64(x)),
tx: decodeTxRaw(fromBase64(x)),
})) || []
});
const format = useFormatter();

View File

@ -61,7 +61,7 @@ export const useBaseStore = defineStore('baseStore', {
}
})
);
return txs;
return txs.sort((a, b) => {return Number(b.height) - Number(a.height)});
},
},
actions: {