1、创建公共文件存放全局变量global.ts(文件名可以自定义) // echarts颜色 const echartsColor: string[] = ['#5470c6', '#91cc75', '#fac858', '#ee6666', '#73c0de', '#3ba272'