|
|
@@ -25,7 +25,6 @@ export const useAccountStore = defineStore(() => {
|
|
|
accountList: [],
|
|
|
currentAccountId: 0,
|
|
|
currentAccountConfig: {
|
|
|
- riskRatioType: {},
|
|
|
todayAccountMargins: [],
|
|
|
todayAccountTradeRules: [],
|
|
|
todayAccountTradefees: []
|
|
|
@@ -35,7 +34,7 @@ export const useAccountStore = defineStore(() => {
|
|
|
// 资金账户计算列表
|
|
|
const accountComputedList = computed(() => {
|
|
|
const { riskRatioType } = state.currentAccountConfig
|
|
|
- const { addmarginriskratio = 0, notemarginriskratio = 0, cutriskratio = 0 } = riskRatioType
|
|
|
+ const { addmarginriskratio = 0, notemarginriskratio = 0, cutriskratio = 0 } = riskRatioType ?? {}
|
|
|
|
|
|
const result: (Model.TaAccountsRsp & {
|
|
|
freezeMargin: number; // 冻结资金
|