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

本地运行后端正常启动 前端可登录 但是页面所有接口都请求不到数据 404 #102

Closed
georgechrau opened this issue Mar 25, 2021 · 2 comments

Comments

@georgechrau
Copy link

2021-03-26 01:10:42 [INFO] OPTIONS /api/v1/getinfo 200 13.201µs 127.0.0.1
2021-03-26 01:10:42 [INFO] GET /api/v1/getinfo admin
2021-03-26 01:10:42 [INFO] GET /api/v1/getinfo 200 1.971335ms 127.0.0.1
2021-03-26 01:10:42 [INFO] OPTIONS /api/v1/menurole 200 12.493µs 127.0.0.1
2021-03-26 01:10:42 [INFO] GET /api/v1/menurole admin
2021-03-26 01:10:42 [INFO] GET /api/v1/menurole 200 3.787844ms 127.0.0.1
2021-03-26 01:10:48 [INFO] OPTIONS /api/v1/sysUser?pageIndex=1&pageSize=10 200 9.36µs 127.0.0.1
2021-03-26 01:10:48 [INFO] OPTIONS /api/v1/deptTree 200 8.33µs 127.0.0.1
2021-03-26 01:10:48 [INFO] OPTIONS /api/v1/dict/data-all?dictType=sys_normal_disable 200 8.942µs 127.0.0.1
2021-03-26 01:10:48 [INFO] OPTIONS /api/v1/dict/data-all?dictType=sys_user_sex 200 7.248µs 127.0.0.1
2021-03-26 01:10:48 [INFO] GET /api/v1/deptTree admin
2021-03-26 01:10:48 [INFO] OPTIONS /api/v1/configKey/sys.user.initPassword 200 20.935µs 127.0.0.1
2021-03-26 01:10:48 [INFO] GET /api/v1/deptTree 200 2.097172ms 127.0.0.1

例如:前端访问的是用户管理菜单,下面这两个请求是404,
2021-03-26 01:10:48 [INFO] GET /api/v1/dict/data-all?dictType=sys_normal_disable 404 8.868µs 127.0.0.1
2021-03-26 01:10:48 [INFO] GET /api/v1/dict/data-all?dictType=sys_user_sex 404 6.082µs 127.0.0.1

2021-03-26 01:10:48 [INFO] GET /api/v1/configKey/sys.user.initPassword admin
2021-03-26 01:10:48 [INFO] GET /api/v1/configKey/sys.user.initPassword 200 3.967244ms 127.0.0.1
在登陆页面就会有404的请求

2021-03-26 01:22:37 [INFO] GET /api/v1/app-config 404 7.037µs 127.0.0.1
2021-03-26 01:22:37 [INFO] GET /api/v1/getCaptcha 200 2.653827ms 127.0.0.1

大神 这个是前端请求错误端口了吗?

@wenjianzhang
Copy link
Member

经测试并没发现这个接口的404,请同时更新前后端项目,以保证两个项目的版本一致;

@georgechrau
Copy link
Author

ok,查看了一下是版本问题,不小心clone了不同地址的后端项目,感谢

AegeanTseng pushed a commit to AegeanTseng/go-admin-ui that referenced this issue May 8, 2023
AegeanTseng pushed a commit to AegeanTseng/go-admin-ui that referenced this issue May 8, 2023
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

2 participants