forked from cerc-io/cosmos-explorer
improve 24hours loading
This commit is contained in:
parent
30826a0ed6
commit
fc57e87f2d
@ -71,6 +71,7 @@ async function fetchChange() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const changes = computed(() => {
|
const changes = computed(() => {
|
||||||
const changes = {} as Record<string, number>;
|
const changes = {} as Record<string, number>;
|
||||||
Object.keys(latest.value).forEach((k) => {
|
Object.keys(latest.value).forEach((k) => {
|
||||||
@ -197,7 +198,14 @@ const logo = (identity?: string) => {
|
|||||||
: `https://s3.amazonaws.com/keybase_processed_uploads/${url}`;
|
: `https://s3.amazonaws.com/keybase_processed_uploads/${url}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
fetchChange();
|
let height_in_24h = ref(0)
|
||||||
|
base.$subscribe((_, s) => {
|
||||||
|
if (Number(s.earlest.block.header.height) !== height_in_24h.value) {
|
||||||
|
height_in_24h.value = Number(s.earlest.block.header.height);
|
||||||
|
fetchChange();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
loadAvatars();
|
loadAvatars();
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
|
Loading…
Reference in New Issue
Block a user