mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
优化公式errhandle警告
This commit is contained in:
parent
b301495c64
commit
363f3ef78f
@ -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;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user