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

感谢作者,刚下载的模板,用自己的api登陆,,会提示登陆成功。跳转不了页面,停留在登录页 #2827

Open
wzj-1997 opened this issue Dec 11, 2019 · 3 comments

Comments

@wzj-1997
Copy link

刚下载了作者的模板,换成自己的api登陆,返回登陆成功消息,但就是不跳转页面,我看着作者的文档,弄了一天,还不能跳转,但是换成作者的原始api登陆,就可以进去了。请教各位同行大哥,请问你们是如何修改权限,能让自己的账号登陆上去

@xxwangkaimin
Copy link

我觉得你应该仔细看看permission.js以及request.js,看看里面的数据返回格式和你自己的是不是一致的

@hunter-ji
Copy link

在mock/user.js里面看到需要的后端接口和数据格式,在点击登录时候看一下发出去的包或者在src/api/user.js可以看到请求的数据。

@zhoupeihuang
Copy link

vue-element-admin/user/login == > {"code":20000,"data":{"token":"admin-token"}}

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

4 participants