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

优化表格

parent 993c197a
...@@ -178,7 +178,7 @@ const DataTable = props => { ...@@ -178,7 +178,7 @@ const DataTable = props => {
} else { } else {
if(item.parseStr){ if(item.parseStr){
const json = JSON.parse(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 { } else {
ele = <span>调试中...</span> ele = <span>调试中...</span>
} }
...@@ -190,7 +190,7 @@ const DataTable = props => { ...@@ -190,7 +190,7 @@ const DataTable = props => {
} else { } else {
if(item.parseStr){ if(item.parseStr){
const json = JSON.parse(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 { } else {
ele = <span>调试中...</span> 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