mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 10:59:42 +08:00
tpl 的 warn 里显示代码,方便追查 (#1043)
This commit is contained in:
parent
dba3da3482
commit
d3dd538ae2
@ -80,7 +80,7 @@ export function evalExpression(expression: string, data?: object): boolean {
|
||||
data = data || {};
|
||||
return fn.call(data, data, getFilters());
|
||||
} catch (e) {
|
||||
console.warn(e);
|
||||
console.warn(expression, e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -107,7 +107,7 @@ export function evalJS(js: string, data: object): any {
|
||||
data = data || {};
|
||||
return fn.call(data, data, getFilters());
|
||||
} catch (e) {
|
||||
console.warn(e);
|
||||
console.warn(js, e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user