Browse Source

fix(model): adjust training mode value initialization

- Change initial mode value from 0 to 500 in reduce function
- Ensure proper handling of non-finite mode values
- Maintain consistent numeric type checking for mode values
pull/81/head
CJL6015 1 month ago
parent
commit
ad50790acd
  1. 2
      src/views/model/train/index.vue

2
src/views/model/train/index.vue

@ -172,7 +172,7 @@ export default defineComponent({
return list.reduce((sum: number, item: any) => {
const modeVal = Number(item?.mode)
return sum + (Number.isFinite(modeVal) ? modeVal : 0)
}, 0)
}, 500)
})
const activeKey = ref('1')

Loading…
Cancel
Save