forked from cerc-io/cosmos-explorer
add single chain mode
This commit is contained in:
parent
fc15673acf
commit
0380598f4f
@ -124,7 +124,7 @@ import {
|
|||||||
import Ripple from 'vue-ripple-directive'
|
import Ripple from 'vue-ripple-directive'
|
||||||
import VuexyLogo from '@core/layouts/components/Logo.vue'
|
import VuexyLogo from '@core/layouts/components/Logo.vue'
|
||||||
import store from '@/store/index'
|
import store from '@/store/index'
|
||||||
import { timeIn, toDay } from '@/libs/utils'
|
import { timeIn, toDay, getLocalChains } from '@/libs/utils'
|
||||||
import AppFooter from '@/@core/layouts/components/AppFooter.vue'
|
import AppFooter from '@/@core/layouts/components/AppFooter.vue'
|
||||||
import FullHeader from './components/FullHeader.vue'
|
import FullHeader from './components/FullHeader.vue'
|
||||||
|
|
||||||
@ -163,6 +163,12 @@ export default {
|
|||||||
return this.downImg
|
return this.downImg
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
beforeCreate() {
|
||||||
|
const keys = Object.keys(getLocalChains())
|
||||||
|
if (keys.length === 1) {
|
||||||
|
this.$router.push(`/${keys[0]}`)
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fetch(k) {
|
fetch(k) {
|
||||||
const chain = this.chains[k]
|
const chain = this.chains[k]
|
||||||
|
Loading…
Reference in New Issue
Block a user