diff --git a/src/libs/data/data.js b/src/libs/data/data.js index d804acad..5789df5d 100644 --- a/src/libs/data/data.js +++ b/src/libs/data/data.js @@ -255,7 +255,7 @@ export function isToken(value) { export function formatTokenDenom(tokenDenom) { if (tokenDenom) { let denom = tokenDenom.denom_trace ? tokenDenom.denom_trace.base_denom.toUpperCase() : tokenDenom.toUpperCase() - if (denom.charAt(0) === 'U') { + if (denom.charAt(0) === 'U' && denom !== 'USDX') { denom = denom.substring(1) } else if (denom === 'BASECRO') { denom = 'CRO' diff --git a/src/router/index.js b/src/router/index.js index 9ceb14a4..9e59941d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -315,7 +315,7 @@ const router = new VueRouter({ }, }, { - path: 'index.php', + path: '/index.php', redirect: '/', }, { @@ -333,6 +333,8 @@ router.beforeEach((to, from, next) => { // const has = Object.keys(config).findIndex(i => i === c) if (!config || Object.keys(config).findIndex(i => i === c) > -1) { next() + } if (c === 'index.php') { + next({ name: 'home' }) } else if (c) { next({ name: 'chain-404' }) } else {