dongweiming / wechat-admin

Wechat Management System
https://dongweiming.github.io/wechat-admin/
GNU General Public License v3.0
1.75k stars 421 forks source link

扫码图片无法显示,查看元素发现url host 居然是localhost,而不是主机ip #26

Closed cxgreat2014 closed 7 years ago

cxgreat2014 commented 7 years ago

我主机的ip是45.xxx.xxx.xxx,访问url是http://45.xxx.xxx.xxx:8100/#/login 然而二维码图片url是http://localhost:8100/static/img/qr_code.gif 修复一下

cxgreat2014 commented 7 years ago

好吧。。刚刚看到另外一个人和我差不多的issue,为啥要手动设置API_URL,而不是通过访问链接自动设置API_URL呢?

dongweiming commented 7 years ago

请仔细阅读README

dongweiming commented 7 years ago

这是一个前后端分离的项目,前端会打包到一起,生成一个目标文件被引用。你就需要打包前修改API_URL