@ -88,10 +88,6 @@ export function eval2(expr: string, params?: {}, defaultParam?: string): number
if (typeof result === "bigint")
result = Number(result);//防止bigint乱入
if (typeof result !== "number")
throw "计算结果不是实数!";
return result;
}
@ -173,6 +173,8 @@ export class TemplateParam
try
{
value = eval2(this.expr as string, vardefines);
if (typeof value !== "number")
catch (error)