From b86e5bd884962aed35a5f612809d47d478d1ebab Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sun, 25 Sep 2022 13:57:10 +0800 Subject: [PATCH] Fix issue --- .../components/dashboard/DashboardPriceChart2.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/views/components/dashboard/DashboardPriceChart2.vue b/src/views/components/dashboard/DashboardPriceChart2.vue index aaa05483..fd626652 100644 --- a/src/views/components/dashboard/DashboardPriceChart2.vue +++ b/src/views/components/dashboard/DashboardPriceChart2.vue @@ -60,10 +60,12 @@ ${{ pair.converted_last.usd }} - {{ coinInfo.symbol }}/{{ pair.target }} + {{ pair.base }}/{{ pair.target }} @@ -76,7 +78,7 @@

{{ selectedTicker.converted_last.usd || '-' }}

- / {{ selectedTicker.target || 'USDC' }} + / USD @@ -382,8 +384,8 @@ export default { this.$http.getCoinInfo().then(res => { if (res) { this.coinInfo = res - if (res.tickers.lenght > 0) { - this.tickers = res.tickers + this.tickers = res.tickers + if (this.tickers.length > 0) { // eslint-disable-next-line prefer-destructuring this.selectedTicker = this.tickers[0] }