|
|
@ -36,9 +36,9 @@ export type WorkType = { |
|
|
|
}; |
|
|
|
|
|
|
|
export function checkSprayParamValid(p: Partial<WorkType>): [boolean, string] { |
|
|
|
if (typeof p.height !== "number") { |
|
|
|
return [false, "请输入正确的z轴高度"]; |
|
|
|
} |
|
|
|
// if (typeof p.height !== "number") {
|
|
|
|
// return [false, "请输入正确的z轴高度"];
|
|
|
|
// }
|
|
|
|
if (typeof p.nitrogenAirPressure !== "number") { |
|
|
|
return [false, "请输入正确的氮气气压"]; |
|
|
|
} |
|
|
|