使用svg标签的时候,设置颜色 fill: #9374ff; 没有改变
fill: #9374ff;
<svg class="icon" aria-hidden="true"> <use xlink:href="#icon-arrowRight"></use> </svg>
解决
应该是图标自带了颜色,在文档中搜索一下svg标签,把设置颜色的代码删了,加上 fill="currentColor" 这部分应该在 iconfont.js文件中
fill="currentColor"