Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

本地测试更改API url 验证码无法修改 #83

Open
lucasjinreal opened this issue Oct 13, 2020 · 3 comments
Open

本地测试更改API url 验证码无法修改 #83

lucasjinreal opened this issue Oct 13, 2020 · 3 comments

Comments

@lucasjinreal
Copy link

image

验证码无法加载

@hp-caoy
Copy link

hp-caoy commented Feb 9, 2021

同问, 登录和注册的验证码都加载不出来

@hp-caoy
Copy link

hp-caoy commented Feb 9, 2021

可能原因在这里 #81 ,我看了请求确实还是localhost。
部署在本地,验证码加载出来了。
image

@feitian124
Copy link

找来半天找到原因了:

如果不在 docker 里面跑, 前后端分开运行,则开发时应该将 BaseUrl 改为前端访问地址(带端口),如 http://127.0.0.1:3000

Env: dev # 环境,线上环境:prod、测试环境:dev
BaseUrl: http://127.0.0.1:3000 # 网站域名,开发时应该使用前端访问地址(带端口),如 http://127.0.0.1:3000
Port: 8082 # 端口

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants