luohairen
2024-10-31 463250a2e74b80dc62a1e46e6fe390ec8bf2b54e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 
const colorList = [
  '#E74C3C',
  '#8E44AD',
  '#F39C12',
  '#27AE60',
  '#FFD1DC',
  '#2471A3',
  '#88D8B0',
  '#154360',
  '#F78F1E'
];
export default function randomColor() {
  return colorList[Math.floor(Math.random() * colorList.length)];
}