Skip to content

[Bug] Images and videos not displayed on web UI — only count visible #331

Description

@destinl

Describe the bug
A clear and concise description of what the bug is.
Describe the bug
启动 plain-app 后,在 PC 浏览器中打开页面,图片和视频区域只能看到数量(如“3 张图片,2 个视频”),但实际缩略图或媒体内容完全无法加载/显示。

To Reproduce
复现步骤:

  1. 使用命令 [启动命令,例如 plain-app serve] 启动应用
  2. 在 PC 上使用 [Chrome 114 / Firefox 115] 访问 http://localhost:[端口]
  3. 进入 [具体页面路径,如 /gallery 或 /media]
  4. 观察:媒体数量正常显示,但图片/视频位置为空白或裂图

Expected behavior
图片和视频应正常加载并显示。

Screenshots / Logs

  • 截图:(附上页面空白区域和控制台报错截图)
  • 浏览器控制台错误:(按 F12 → Console,贴出红色报错信息,例如 404、CORS、Mixed Content 等)
  • 网络请求状态:(Network 标签中对图片/视频请求的状态码)

Environment:

  • OS: HarmonyOS version 4.0.0
  • Browser: Chrome
  • plain-app version/commit: 3.1.15(595)

Screenshots

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions