This commit is contained in:
liangping 2021-11-17 15:44:50 +08:00
parent 0ccfd3b79f
commit 13d47714a0
4 changed files with 9 additions and 9 deletions

View File

@ -34,8 +34,8 @@ const modules = [
},
{
scope: 'osm-osis',
title: 'pools',
route: 'osmosis-pool',
title: 'trade',
route: 'osmosis-trade',
},
]

View File

@ -279,7 +279,7 @@ const router = new VueRouter({
// custom modules for specified chains
// 1. cosmos
{
path: '/:chain/cosmos/pools',
path: '/:chain/cosmos/trade',
name: 'gravity',
component: () => import('@/views/GravityPool.vue'),
meta: {
@ -294,14 +294,14 @@ const router = new VueRouter({
},
// 2. OSMOSIS
{
path: '/:chain/osmosis/pools',
name: 'osmosis-pool',
component: () => import('@/views/OsmosisPools.vue'),
path: '/:chain/osmosis/trade',
name: 'osmosis-trade',
component: () => import('@/views/OsmosisTrade.vue'),
meta: {
pageTitle: 'Pools',
pageTitle: 'Trade',
breadcrumb: [
{
text: 'Pools',
text: 'Trade',
active: true,
},
],

View File

@ -1,7 +1,7 @@
let chains = {}
let configs = require.context('../../chains/mainnet', false, /\.json$/)
if (window.location.hostname.startsWith('testnet') || window.location.search.indexOf('testnet')) {
if (window.location.hostname.startsWith('testnet') || window.location.search.indexOf('testnet') > -1) {
configs = require.context('../../chains/testnet', false, /\.json$/)
}