IITII / pic_online

局域网媒体浏览服务, 图片, 漫画, 视频,,,
https://iitii.github.io/pic_online/
MIT License
21 stars 1 forks source link

在docker中遇到跨域问题,图片加载不出来。 #2

Closed zolagz closed 1 year ago

zolagz commented 1 year ago

vendor.aceed81b.js:62 Uncaught (in promise) Error: Image failed to load!And failed src was: http://localhost:80/images/0001.png at vendor.aceed81b.js:62:75741 at Z._log (vendor.aceed81b.js:62:76377) at vendor.aceed81b.js:62:75724

请问,是把该项目下载后,注释 node_modules/vue-waterfall-plugin-next/dist/my-lib.es.js:340 行吗?我尝试这么做,好像还是不行。

IITII commented 1 year ago

注释后需要重新构建。推荐使用 nginx 做统一,都弄到一个 host:port 下面就可以了。

~上游更新了,我看看端午有没有空修一下~

zolagz commented 1 year ago

好的。大佬可以搞一个注释后在打包的版本发布出来吗?

zolagz commented 1 year ago

大佬,是否可以考虑,直接把上游的跨域,在该项目中禁用了呢?

IITII commented 1 year ago

你试试最新的 release #v3.2.0

zolagz commented 1 year ago

最新的 release #v3.2.0在docker中使用还是同样的问题:vendor.aceed81b.js:62 Uncaught (in promise) Error: Image failed to load!And failed

IITII commented 1 year ago

wget https://raw.githubusercontent.com/IITII/pic_online_backend/main/docker-compose.yml docker-compose up -d 用这个试试