forked from LaconicNetwork/cosmos-explorer
normalize store references
This commit is contained in:
parent
c469a91c9a
commit
d1db35c2c1
@ -1,5 +1,5 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useDashboard } from '@/stores/useDashboard';
|
import { useDashboard } from '@/stores';
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
import { Icon } from '@iconify/vue';
|
import { Icon } from '@iconify/vue';
|
||||||
|
|
||||||
|
|||||||
@ -28,8 +28,9 @@ const options = computed(() => {
|
|||||||
},
|
},
|
||||||
show: false,
|
show: false,
|
||||||
categories: baseStore.recents
|
categories: baseStore.recents
|
||||||
|
.slice(0, 50)
|
||||||
.map((x) => x.block.header.height)
|
.map((x) => x.block.header.height)
|
||||||
.concat(Array(50 - baseStore.recents.length).fill('')),
|
.concat(Array(Math.max(0, 50)).fill('')),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import { createPinia } from 'pinia';
|
|||||||
import LazyLoad from 'lazy-load-vue3';
|
import LazyLoad from 'lazy-load-vue3';
|
||||||
|
|
||||||
import router from './router';
|
import router from './router';
|
||||||
import { useBaseStore } from './stores/useBaseStore';
|
import { useBaseStore } from '@/stores';
|
||||||
|
|
||||||
// Create vue app
|
// Create vue app
|
||||||
const app = createApp(App);
|
const app = createApp(App);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user