From 82573307e9b418ebfc0c52c43bacd6709c3dd753 Mon Sep 17 00:00:00 2001 From: "DESKTOP-FUDKNA8\\znjsz" Date: Wed, 20 Mar 2024 10:36:40 +0800 Subject: [PATCH] 1 --- src/components/Chart/RateChart.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Chart/RateChart.vue b/src/components/Chart/RateChart.vue index 6e3699d..adbd421 100644 --- a/src/components/Chart/RateChart.vue +++ b/src/components/Chart/RateChart.vue @@ -38,7 +38,10 @@ const rate = computed(() => { // .toFixed(2) // .toString(); // return [parseInt(_rate), _rate.split(".")[1]]; - return [parseInt(props.rawData.nowYield), props.rawData.nowYield.split(".")[1]]; + return [ + parseInt(props.rawData.nowYield), + (props.rawData.nowYield + "").split(".")[1], + ]; }); const chart = ref(null);