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

请问小图片如何保持图片地址,不自动转base64? #2624

Closed
wzfjesun opened this issue Oct 5, 2019 · 3 comments
Closed

请问小图片如何保持图片地址,不自动转base64? #2624

wzfjesun opened this issue Oct 5, 2019 · 3 comments

Comments

@wzfjesun
Copy link

wzfjesun commented Oct 5, 2019

Question(提问)

<span><img class="emoji-icon" @click="selectEmoji($event)" title="[微笑]" src="@/assets/emoji/smile.gif?v=1" /></span>
<span><img class="emoji-icon" @click="selectEmoji($event)" title="[微笑]" src="@/assets/emoji/weixiao.gif?v=1" /></span>
<span><img class="emoji-icon" @click="selectEmoji($event)" title="[微笑]" src="../../assets/emoji/weixiao.png?v=1" /></span>

Screenshot from 2019-10-05 23-20-57

如上图的三个图片,第一个图片大小有6k,浏览器显示的是图片url,第二和第三张只有3k就转成base64显示了。请问如何才能保持显示图片url,不让他自动转成base64呢?

@mayunhai
Copy link
Contributor

mayunhai commented Oct 8, 2019

把不想被转化的图片放 根目录/public里面

@mayunhai
Copy link
Contributor

mayunhai commented Oct 8, 2019

或者通过配置文件修改图片转化大小限制 【参考官方文档】

@wzfjesun
Copy link
Author

谢谢 @mayunhai

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

No branches or pull requests

3 participants