Open liushu777 opened 11 months ago
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. https://github.com/go-admin-team/go-admin-ui/blob/master/src/utils/request.js#L8
@G-Akiraka sir,The git history is correct, not sure why you want to modify it.
https://github.com/go-admin-team/go-admin-ui/commit/fe5ec208fe968632c8e7873196e02f09b3fe7a9b
我日
是的,改回baseURL就能正确访问了。
真是,刚了解到这个项目,前后端都正常起了,结果登陆验证码全404,查了半天看到这个issue
request.js
baseUrl -> baseURL
works!
baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url baseUrl: process.env.VUE_APP_BASE_API, // url = base url + request url
fe5ec208fe968632c8e7873196e02f09b3fe7a9b baseURL被改错了