go-admin-team / go-admin-ui

基于Gin + Vue + Element UI & Arco Design & Ant Design 的前后端分离权限管理系统的前端模块

Home Page:https://www.go-admin.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

baseURL被改错了

liushu777 opened this issue · comments

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被改错了

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

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

fe5ec20

我日

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

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

request.js baseUrl -> baseURL works!