|
|
@@ -22,7 +22,7 @@ export const useIsDiaoQi = (goodsid: number) => {
|
|
|
|
|
|
// 商品掉期取参考行情最新价,挂牌点选取自己行情的最新价
|
|
|
export function findGoodsCode(goodsid: number, goodscode: string, swapList: QueryQuoteGoodsListRsp[]) {
|
|
|
- const result = useIsDiaoQi(goodsid) ? swapList.find((el) => goodsid === goodsid)?.refgoodscode : goodscode;
|
|
|
+ const result = useIsDiaoQi(goodsid) ? swapList.find((el) => el.goodsid === goodsid)?.refgoodscode : goodscode;
|
|
|
return result ? result : ''
|
|
|
}
|
|
|
|