<image class="image" src="https://xxx/a.jpg" mode="aspectFill" @error="imageError"></image>

- 发布:2025-03-26 10:08
- 更新:2025-03-26 12:24
- 阅读:39
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: Sequoia 15.3.2
HBuilderX类型: 正式
HBuilderX版本号: 4.57
手机系统: Android
手机系统版本号: Android 5.1
手机机型: 手持机
页面类型: vue
vue版本: vue3
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
预期可正常显示
预期可正常显示
实际结果:
图片不显示
图片不显示
bug描述:
uniapp-x
安卓版本5.1
<image class="image" src="https://xxx/a.jpg" mode="aspectFill" @error="imageError"></image>
image组件调用 https图片 错误返回
//[io.dcloud.uniapp.runtime.UniImageErrorEvent]
{
"detail":
//[io.dcloud.uniapp.runtime.UniImageErrorEventDetail]
{
"errMsg": "java.security.cert.CertPathValidatorException: Trust anchor for certification path not found."
}
}
艺宝皮皮 (作者)
unix 直接在页面 <image class="image" src="https://xxx/a.jpg" mode="aspectFill" @error="imageError"></image> 安卓版本5.1里就看到问题了 http没问题 https就提示java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
2025-03-29 12:14
DCloud_Android_ST
回复 艺宝皮皮: “https://xxx/a.jpg” 你给个你复现问题的地址吧 我这边测试都正常未复现问题
2025-03-31 11:14