fix some bug

This commit is contained in:
2026-06-06 15:48:27 +03:30
parent f82a0c3873
commit 4c707849ef
5 changed files with 29 additions and 27 deletions
@@ -32,8 +32,7 @@ import type {Product} from "@/models/products";
import {usePrice} from '@/utils/usePrice';
import {getFileUrl} from '@/utils/file';
import {computed, ref} from "vue";
import { getTradeBuyPrice, lastPrice } from '@/utils/price'
import type { Price } from '@/models/home'
import { getProductBuyPrice } from '@/utils/productPrice'
interface Prop {
ProductItem: Product
@@ -88,9 +87,7 @@ const price = computed(()=>{
}
})
const priceLast = computed((): Price => <Price>lastPrice.value ?? 0)
const goldPriceValue = computed(() => getTradeBuyPrice(priceLast.value))
const goldPriceValue = computed(() => getProductBuyPrice(props.ProductItem))
</script>