improve ui

This commit is contained in:
liangping
2023-05-18 21:20:19 +08:00
parent 0122fe89f6
commit be6cd1af7c
12 changed files with 66 additions and 39 deletions
+3 -1
View File
@@ -15,6 +15,7 @@ import {
useGovStore,
useMintStore,
useStakingStore,
useWalletStore,
} from '.';
import { useBlockModule } from '@/modules/[chain]/block/block';
import { DEFAULT } from '@/libs';
@@ -67,7 +68,7 @@ export const useBlockchain = defineStore('blockchain', {
icon: { image: this.current.logo, size: '22' },
i18n: false,
badgeContent: this.isConsumerChain? 'Consumer': undefined,
badgeClass: 'bg-secondary',
badgeClass: 'bg-warning',
children: routes
.filter((x) => x.meta.i18n) // defined menu name
.filter((x) => !this.current?.features || this.current.features.includes(String(x.meta.i18n))) // filter none-custom module
@@ -124,6 +125,7 @@ export const useBlockchain = defineStore('blockchain', {
// const { global } = useTheme();
// global.current
// }
useWalletStore().$reset()
await this.randomSetupEndpoint();
await useStakingStore().init();
useBankStore().initial();