Commit 2e52741c authored by 杨子龙's avatar 杨子龙

修复配置问题

parent 386599a5
...@@ -308,9 +308,14 @@ const StatusOption = (props) => { ...@@ -308,9 +308,14 @@ const StatusOption = (props) => {
if (Array.isArray(value)) { if (Array.isArray(value)) {
let array = [] let array = []
value.forEach((v, i) => { value.forEach((v, i) => {
const obj = {
...v
}
if(!v.color){ if(!v.color){
array.push({ ...v, color: colors[i % 10] }) obj.color = colors[i % 10]
} }
array.push(obj)
}) })
onChange(array) onChange(array)
......
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