This commit is contained in:
duanliang
2025-04-25 11:25:57 +08:00
parent eb73021073
commit 76e857d40d

View File

@@ -94,14 +94,18 @@
) )
const init = ()=>{ const init = ()=>{
props.dataList.forEach((item,index)=>{ props.dataList.forEach((item,index)=>{
if(item.name=='负面'){ if(item.name=='负面'){
colorList.push('#d9011b') colorList.push('#d9011b')
} }
if(item.name=='正面'){ else if(item.name=='正面'){
colorList.push('#feae00') colorList.push('#feae00')
} }
if(item.name=='中性'){ else if(item.name=='中性'){
colorList.push('#2380fb') colorList.push('#50F0A6')
}
else{
colorList = ['#3BA272', '#73C0DE','#EE6666','#FAC858','#91CC75','#5470C6','#d9011b','#feae00','#50F0A6']
} }
}) })