|
|
@@ -105,7 +105,7 @@ export const useHazardRates = (positions: Ref<QueryTradePositionRsp[]>) => {
|
|
|
return positions.value.length > 0 ? positions.value[0].decimalplace : 2
|
|
|
}
|
|
|
// 获取系统参数
|
|
|
- const getSystemParam = (paramcode: string, value: string) => APP.getRef('systemParams').value.find((param: Systemparam) => param.paramcode)?.paramvalue === value
|
|
|
+ const getSystemParam = (paramcode: string, value: string) => APP.getRef('systemParams').value.find((param: Systemparam) => param.paramcode === paramcode)?.paramvalue === value
|
|
|
// 获取当前资金账号对应的头寸
|
|
|
function getTaaccountPosition(accountid: number) {
|
|
|
return positions.value.filter(e => e.accountid === accountid)
|