fix: 强制将电压份数设置为1
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user