go-admin-team / go-admin-ui

基于Gin + Vue + Element UI & Arco Design & Ant Design 的前后端分离权限管理系统的前端模块
https://www.go-admin.dev
MIT License
1.16k stars 716 forks source link

baseURL被改错了 #229

Open liushu777 opened 11 months ago

liushu777 commented 11 months ago

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

MissWho commented 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. 0010bb23e99e5806c6b15a051a7ff93 https://github.com/go-admin-team/go-admin-ui/blob/master/src/utils/request.js#L8

MissWho commented 11 months ago

@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

Chriscookie commented 11 months ago

我日

ryanreadbooks commented 11 months ago

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

ibuki-suika-z commented 11 months ago

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

lhalcyon commented 11 months ago

request.js baseUrl -> baseURL works!