Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改让没有host的img链接能添加host #71

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

2767321434
Copy link

使用中发现用富文本编辑器生成的html代码里的图片地址,都是相对地址,没有host,所以自己修改代码支持能在代码中添加固定的host地址,原来有个
imgUrl = wxDiscode.urlToHttpUrl(imgUrl, __placeImgeUrlHttps);
这有点搞不懂这在干嘛,没有修改,目前应用中没影响,麻烦作者说下这方法是干嘛的,谢谢了

添加url增加host方法
给没有host的图片url添加host
@2767321434
Copy link
Author

或者用getApp()从app.js中host的值

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant