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

baseURL被改错了 #229

Open
liushu777 opened this issue Nov 20, 2023 · 6 comments
Open

baseURL被改错了 #229

liushu777 opened this issue Nov 20, 2023 · 6 comments

Comments

@liushu777
Copy link

baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
baseUrl: process.env.VUE_APP_BASE_API, // url = base url + request url

fe5ec20 baseURL被改错了

@MissWho
Copy link

MissWho commented Nov 22, 2023

The code without any changes reported an error "Request failed with status code 404" after opening the page. When debugging the code, it was found that the case of the baseURL was wrong.
0010bb23e99e5806c6b15a051a7ff93
https://github.com/go-admin-team/go-admin-ui/blob/master/src/utils/request.js#L8

@MissWho
Copy link

MissWho commented Nov 22, 2023

@G-Akiraka sir,The git history is correct, not sure why you want to modify it.

fe5ec20

@Chriscookie
Copy link

我日

@ryanreadbooks
Copy link

是的,改回baseURL就能正确访问了。

@ibuki-suika-z
Copy link

真是,刚了解到这个项目,前后端都正常起了,结果登陆验证码全404,查了半天看到这个issue

@lhalcyon
Copy link

request.js baseUrl -> baseURL works!

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

6 participants