无法加载资源:服务器以404的状态响应(找不到),找不到图像吗?

发布于 2025-01-25 10:34:42 字数 397 浏览 1 评论 0原文

我正在开发一个完整的堆栈E Commerce网站,但是在加载图像时存在问题。 error msg

我为一个图像做了一个示例, 数据基础屏幕截图

,Angular Project中有一个路径 路径

I am developping a full stack E commerce web site , but there's a problem loading the images .
error msg

there's the path I made for one image,as an example
data base screenshot

and there's the path in angular project
path

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦里人 2025-02-01 10:34:42

如您的图像所示,您正在从DB中返回错误的路径:您在资产/产品/书籍中拥有它们...,而不是资产/图像/产品/书籍...您的数据库条目正在说明。因此,要么在db中更改image_url,要么在Assets下创建图像文件夹,然后将您的products文件夹移动到图像。

As your images show, you're returning the wrong path from DB: you have them in assets/products/books... and not in assets/images/products/books... as your DB entries are telling. So either change your image_url in DB, or create images folder under assets and move your products folder into images.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文