This commit is contained in:
2026-06-12 20:29:26 +03:30
parent 511564be64
commit 68be4fd5a1
5 changed files with 50 additions and 65 deletions
+3 -3
View File
@@ -200,7 +200,7 @@
<span class="text-xs text-base">ریال</span>
</div>
<div class="flex items-center gap-2 ml-4">
<span class="text-base font-bold">{{ walletStore.walletInfo?.gold_sum.toFixed(3) }}</span>
<span class="text-base font-bold">{{ walletStore.walletInfo?.gold_sum?.toFixed(3) ?? '0.000' }}</span>
<span class="text-xs text-base">گرم</span>
</div>
</div>-->
@@ -769,8 +769,8 @@ const toPersianNumber = (num) => {
const fetchPrices = async () => {
try {
const response = await getAllPrices()
const data = response.data?.prices
const selectedData = data[selection.value] || []
const data = response?.data?.prices ?? {}
const selectedData = data[selection.value] ?? []
priceChartSeries.value[0].data = selectedData.map((item) => [item.timestamp, item.value - 1])
// console.log(priceChartSeries.value[0].data)
chartRef.value?.updateOptions({
+2 -2
View File
@@ -638,8 +638,8 @@ const toPersianNumber = (num) => {
const fetchPrices = async () => {
try {
const response = await getAllPrices()
const data = response.data.prices
const selectedData = data[selection.value] || []
const data = response?.data?.prices ?? {}
const selectedData = data[selection.value] ?? []
priceChartSeries.value[0].data = selectedData.map((item) => [item.timestamp, item.value - 1])
// console.log(priceChartSeries.value[0].data)
chartRef.value?.updateOptions({