fix some bug
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user