【问题标题】:can't find icons (beginner)找不到图标(初级)
【发布时间】: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


    【解决方案1】:

    如果您使用的是 Webpack,那么您可能会查看 Webpack 配置。您可以检查以下设置,

    Element-starter - Webpack config

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-06-08
      • 2013-05-26
      • 2017-04-05
      • 1970-01-01
      • 2018-12-20
      相关资源
      最近更新 更多