bug #I6624Z 规则data不能传递纯字符串 "xxxx",在脚本里获得会报错

This commit is contained in:
everywhere.z 2022-12-14 23:43:08 +08:00
parent 21d2ca04e8
commit 5cc41a2d49
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ public abstract class NodeComponent{
if (StrUtil.isBlank(this.cmpDataTL.get())){
return null;
}
if (clazz.equals(String.class)){
if (clazz.equals(String.class) || clazz.equals(Object.class)){
return (T) this.cmpDataTL.get();
}
return JsonUtil.parseObject(this.cmpDataTL.get(), clazz);