fix typo in pricemarket chart

when clicking the volume tab of the chat, hover tip remains Price, should be Volume
This commit is contained in:
cloudaiminer 2024-12-11 23:31:56 +08:00 committed by GitHub
parent c02b0ccb50
commit ae5153c22f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,7 @@ const kind = ref('price');
const series = computed(() => {
return [
{
name: 'Price',
name: kind.value === 'price' ? 'Price' : 'Volume',
data:
kind.value === 'price'
? store.marketData.prices.map((item: any) => item[1])