This commit is contained in:
liangping 2021-10-12 08:45:45 +08:00
parent 2ba6f8b39d
commit f42b74c01b
2 changed files with 5 additions and 1 deletions

View File

@ -274,7 +274,7 @@ export function formatTokenAmount(tokenAmount, fraction = 2, denom = 'uatom') {
decimals = 1000000000000000000n decimals = 1000000000000000000n
} }
let ta = tokenAmount let ta = tokenAmount
if (typeof tokenAmount === 'string' && tokenAmount.indexOf('.') > 1) { if (typeof tokenAmount === 'string' && tokenAmount.indexOf('.') > 0) {
ta = tokenAmount.substring(0, tokenAmount.indexOf('.')) ta = tokenAmount.substring(0, tokenAmount.indexOf('.'))
} }
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef

View File

@ -314,6 +314,10 @@ const router = new VueRouter({
layout: 'full', layout: 'full',
}, },
}, },
{
path: 'index.php',
redirect: '/',
},
{ {
path: '*', path: '*',
redirect: '/error/error-404', redirect: '/error/error-404',