Comments (9)
是用 webpack 打包的?看起来是字体文件的 loader 没有配置对
from element.
我刚提了个pr ,看能不能通过,因为公司正在用这套ui
from element.
{
test: /.(woff2?|eot|ttf|otf)(?.*)?$/,
loader: 'url',
query: {
limit: 20000,
name: 'fonts/[name].[ext]?[hash:7]'
}
}
这是我的webpack配置, 我在vue文件里面直接将@import 'element-ui/lib/theme-default/index.css';引进去
from element.
http://localcaiwu.soouya.com 是啥?你用 nginx 之类的做代理的?有配置 fonts/ 目录 rewrite 么
from element.
nginx 作转发, 在nginx配置如下:
server {
listen 80;
server_name localcaiwu.soouya.com;
location ~ ^/redwood/.*\.do {
proxy_set_header Host devhongshan.soouya.com;
proxy_pass http://devhongshan.soouya.com; #开发
#proxy_set_header Host testcaiwu.soouya.com;
#proxy_pass http://testcaiwu.soouya.com;
}
location / {
proxy_pass http://localhost:3070;
#proxy_set_header Upgrade $http_upgrade;
#proxy_set_header Connection "upgrade";
#proxy_set_header Host $host;
}
}
from element.
那你并没有 rewrite 静态资源文件啊,我也没配过,不过肯定漏了些配置 🌚
from element.
奇怪的是,在mac开发,就不会报这个问题
from element.
location ~ ^/(?:fonts)/ {
break;
}
maybe
from element.
我试试
from element.
Related Issues (20)
- [Bug Report] 最新版本elemen-ui在webpack里运行table显示空白,在vite里正常 HOT 6
- [Feature Request] 希望el-select在多选的情况下,提供修改选中值el-tag的样式 HOT 5
- [Bug Report] table组件使用toggleRowSelection 出现的bug
- [Bug Report] Textarea autosize does not work in Firefox HOT 1
- [Bug Report] 网页缩放后,el-table show-overflow-tooltip ,原本无tooltip的短内容也展示了tooltip,且没有附加缩略符号
- [Bug Report] win11下,el-upload多选不能鼠标一次框选多个 HOT 2
- [Bug Report] date-picker组件显示异常
- [Feature Request] 能否给date-picker的cell增加一个slot
- [Bug Report] el-time-picker is-range selectableRange设置时间范围options失效
- [Bug Report] 自定义主题服务报错 HOT 2
- [Bug Report] el-date-picker组件使用format格式化为中文单位时,下拉选择日期时间时显示有bug HOT 1
- [Bug Report] transfer 穿梭框,左边选中数据传到右边,怎么展示在右边panel最上边, 同理,右边选中数据传到左边,怎么展示在左边panel最上边?
- [Bug Report] element-ui的table组件,伸缩列缩到一起后,右侧操作列冻结列会有斑马纹断掉,而且操作列那一列会多出一列空列
- [Feature Request] 级联面板(el-cascader-panel)没有搜索功能?
- [Bug Report] el-date-picker component drop-down box content duplication problem
- [Bug Report] 在 el-date-picker 日期时间范围选择器中存在一个问题:在手动输入日期时间后,更改时间时会出现时分秒被禁用的情况。 HOT 1
- [Bug Report] el-tree 点击小三角时无法加载子节点动态数据
- [Bug Report] Select component on iOS intercepts the focus
- [Feature Request] 期望el-cascader filterable开启后搜索的结果展示提供slot HOT 1
- [Bug Report] 主题功能 Server Error 500 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from element.