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

自己写登录接口 #1141

Closed
jl63 opened this issue Nov 1, 2022 · 1 comment
Closed

自己写登录接口 #1141

jl63 opened this issue Nov 1, 2022 · 1 comment

Comments

@jl63
Copy link

jl63 commented Nov 1, 2022

请酌情提供细节,并保持issue精简便于查阅

  1. 功能需求 => 详细说明
  2. Bug反馈
    2.1 简单描述下报错
    2.2 你期望什么结果
    2.3 如何操作导致的
    2.4 可提供运行环境信息
  3. 代码求助 => 可以提,未必及时答复

想请问一下如果我们想把登录换成自己的接口,除了handleok的时候调接口之外需要set什么store或者修改什么地方呢?用store.set了user和history.push跳转到dashboard以后会404,用户信息也get不到。谢谢!

@superlbr
Copy link
Collaborator

superlbr commented Nov 2, 2022

  1. 登录接口只负责登录,后面就交给yield put({ type: 'app/query' })
  2. 路由、权限什么的都在model/app.js里,调试看下就可以看到对应的请求了。跑一个正常的,跑一个你自己的,对比下,很清楚的。

@superlbr superlbr closed this as completed Nov 2, 2022
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