!2167 修复:BBS拆单属性值校验

pull/2168/head
林三 1 year ago committed by ChenX
parent a1713d48ff
commit 9f5b19609d

@ -534,6 +534,12 @@ export namespace CheckoutValid
return "表达式不能有逗号"; return "表达式不能有逗号";
if (!isNum(v)) if (!isNum(v))
return "数值不能为空且必须为数字"; return "数值不能为空且必须为数字";
case EBoardKeyList.SpliteHeight:
case EBoardKeyList.SpliteWidth:
case EBoardKeyList.SpliteThickness:
if (v && isNaN(safeEval(v, { L: 1, H: 1, W: 1 })))
return `拆单尺寸表达式错误,表达式:${v}`;
return "";
default: default:
return ""; return "";
} }

Loading…
Cancel
Save