【发布时间】:2019-01-20 21:07:15
【问题描述】:
我正在使用 ElementUI 一切正常,但图标没有显示。
在我的控制台上,以下网址出现错误 404
http://localhost/fonts/vendor/element-ui/lib/theme-chalk/element-icons.woff?2fad952a20fbbcfd1bf2ebb210dccf7a
http://localhost/fonts/vendor/element-ui/lib/theme-chalk/element-icons.ttf?6f0a76321d30f3c8120915e57f7bd77e
根据他们的文档,我做了以下事情。 (updating scss variables)
/* theme color */
$--color-primary: teal;
/* icon font path, required */
$--font-path: '~element-ui/lib/theme-chalk/fonts';
@import "~element-ui/packages/theme-chalk/src/index";
我更新了变量,$--color-primary: teal; 工作正常,但字体路径仍然出错
我在 Laravel 5.6 和 vue js 上使用它
【问题讨论】:
标签: javascript vue.js vuejs2 element-ui