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

似乎<img>标签不能在真机中支持本地图片 #525

Open
wadezhao opened this issue Jun 19, 2023 · 1 comment
Open

似乎<img>标签不能在真机中支持本地图片 #525

wadezhao opened this issue Jun 19, 2023 · 1 comment

Comments

@wadezhao
Copy link

wadezhao commented Jun 19, 2023

使用环境

Android APP
开发环境:Windows 10+HBuilderX
打包:DCloud云打包

问题描述

内容中的

<img src='/static/xxx.png'>

在模拟器中测试,可以正确显示,云打包后安装到真机测试,均无法显示,点击后自动进入图片列表预览界面,也一直显示loading转圈,不能显示。
试过改成相对路径
<img src='../../static/xxx.png'>
或者
<img src='@/static/xxx.png'>
或者
<img src='file://static/xxx.png'>
都不行。

两台测试真机分别为红米Note 11T Pro和荣耀V20(没升级鸿蒙,为基于安卓10的操作系统)

复现方式

每次都能复现

@ljt990218
Copy link

使用 image 标签试试

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

2 participants