在项目中出现There is a chart instance already initialized on the dom.(dom上已经初始化了一个图表实例)警告。 解决方法:进行判断一下dom是否存在,要是不存在才进行初始化。