Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

WxcIcon 组件使用本地JS加载出现错误 #253

Closed
ErHu1993 opened this issue Apr 26, 2018 · 3 comments
Closed

WxcIcon 组件使用本地JS加载出现错误 #253

ErHu1993 opened this issue Apr 26, 2018 · 3 comments

Comments

@ErHu1993
Copy link
Contributor

在项目中我对JS文件进行了缓存, 缓存后的地址为 file://xxxx, 当�Weex渲染完成后,发现使用WxcIcon组件的地方图片出不来, 显示这样
image

看了下WxcIcon 的源码index.vue 发现如下引入:

beforeCreate () {
    dom.addRule('fontFace', {
      'fontFamily': 'weexUiIconFont',
      'src': "url('//at.alicdn.com/t/font_520368_r89ekv69euahsemi.ttf')"
    })
  },

其中的url里是不是不应该有 "//" 去引用, 而应该是http://at.alicdn.com/t/font_520368_r89ekv69euahsemi.ttf 的方式?

不知这是否是你们的Bug ~ 于是就提下问问

@ErHu1993
Copy link
Contributor Author

ErHu1993 commented Apr 26, 2018

iOS 系统 (已开启HTTP请求允许)~ Android我没试 不晓得会不会出现这样的情况

image

@tw93
Copy link
Member

tw93 commented Apr 27, 2018

欢迎PR,这种问题直接替换下就好

@tw93
Copy link
Member

tw93 commented Apr 28, 2018

请使用 weex-ui@0.6.3-beta 版本 已经修复

@tw93 tw93 closed this as completed Apr 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants