From 7574376593f26e04db10cfc010974def375f141c Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Mon, 31 Oct 2022 18:17:45 +0800 Subject: [PATCH] fix type --- src/store/chains/index.js | 2 +- src/views/WalletAccountDetail.vue | 1 - src/views/WalletAccounts.vue | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/store/chains/index.js b/src/store/chains/index.js index eafaee1e..013e75c3 100644 --- a/src/store/chains/index.js +++ b/src/store/chains/index.js @@ -92,7 +92,7 @@ export default { const keys = Object.keys(coingecko) if (keys.length > 0) { const currencies = 'usd,cny,eur,jpy,krw,sgd,hkd' - fetch(`https://api.coingecko.com/api/v3/simple/price?vs_currencies=${currencies}&ids=${keys.join(',')}`).then(data => data.json()).then(data => { + fetch(`https://api.coingecko.com/api/v3/simple/price?include_24hr_change=true&vs_currencies=${currencies}&ids=${keys.join(',')}`).then(data => data.json()).then(data => { // use symbol as key instead of coingecko id const quotes = {} Object.keys(data).forEach(k => { diff --git a/src/views/WalletAccountDetail.vue b/src/views/WalletAccountDetail.vue index d07f2213..fbfaa725 100644 --- a/src/views/WalletAccountDetail.vue +++ b/src/views/WalletAccountDetail.vue @@ -424,7 +424,6 @@ import FeatherIcon from '@/@core/components/feather-icon/FeatherIcon.vue' import ToastificationContent from '@core/components/toastification/ToastificationContent.vue' import Ripple from 'vue-ripple-directive' import VueQr from 'vue-qr' -import chainAPI from '@/libs/fetch' import { formatToken, formatTokenAmount, formatTokenDenom, getStakingValidatorOperator, percent, tokenFormatter, toDay, toDuration, abbrMessage, abbrAddress, getUserCurrency, getUserCurrencySign, numberWithCommas, toETHAddress, diff --git a/src/views/WalletAccounts.vue b/src/views/WalletAccounts.vue index dc101583..cdaed029 100644 --- a/src/views/WalletAccounts.vue +++ b/src/views/WalletAccounts.vue @@ -1,7 +1,6 @@