fix: 强制将电压份数设置为1

This commit is contained in:
dmy
2026-03-04 16:28:37 +08:00
parent d5a9bb8798
commit aed5c5e3cb

View File

@@ -632,7 +632,10 @@ const calculate = async () => {
const paramsWithAnimation = { const paramsWithAnimation = {
parameter: toRaw(rawParams.parameter), parameter: toRaw(rawParams.parameter),
advance: toRaw(rawParams.advance), advance: toRaw(rawParams.advance),
optional: toRaw(rawParams.optional), optional: {
...toRaw(rawParams.optional),
voltage_n: 1 // 强制将电压份数设置为1
},
animation_enabled: animationRef.value?.isEnabled() ?? false animation_enabled: animationRef.value?.isEnabled() ?? false
} }
await window.pywebview.api.calculate(paramsWithAnimation) await window.pywebview.api.calculate(paramsWithAnimation)