优化公式errhandle警告

This commit is contained in:
allenve 2023-05-30 10:41:35 +08:00
parent b301495c64
commit 363f3ef78f

View File

@ -41,7 +41,6 @@ export const resolveVariableAndFilterForAsync = async (
? fallbackValue(ret)
: ret;
} catch (e) {
console.warn(e);
if (e.name === 'FormulaEvalError') {
if (!skipFormulaEvalErrorHandler) {
// 无法解析时执行handler自定义解析逻辑
@ -55,6 +54,7 @@ export const resolveVariableAndFilterForAsync = async (
// 跳过自定义解析逻辑,则直接抛异常
throw e;
}
console.warn(e);
return undefined;
}
};