Commit dd88fd76 authored by 杨子龙's avatar 杨子龙

优化表格

parent 993c197a
......@@ -178,7 +178,7 @@ const DataTable = props => {
} else {
if(item.parseStr){
const json = JSON.parse(item.parseStr);
ele = <span style={{color: json[_].color}}>{json[_].label}</span>
ele = <span style={{color: json[_]?.color}}>{json[_]?.label}</span>
} else {
ele = <span>调试中...</span>
}
......@@ -190,7 +190,7 @@ const DataTable = props => {
} else {
if(item.parseStr){
const json = JSON.parse(item.parseStr);
ele = <TagPack color={json[_].color} text={json[_].label} />
ele = <TagPack color={json[_]?.color} text={json[_]?.label} />
} else {
ele = <span>调试中...</span>
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment