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

权限路由问题 #18

Open
april520randy opened this issue Sep 11, 2019 · 3 comments
Open

权限路由问题 #18

april520randy opened this issue Sep 11, 2019 · 3 comments

Comments

@april520randy
Copy link

用户登录成功之后,每次点击路由都进行了角色的判断;
每次路由切换都要 请求接口拉取用户信息,会不会体验不好,浪费宽带,
登录拉取一次用户信息,根据roles生成可访问路由表缓存起来就可以了会不会更好一点

@wdlhao
Copy link
Owner

wdlhao commented Sep 18, 2019

用户登录成功之后,会给角色信息roles赋值;第二次点击路由时,roles已经有值了,就不会再去请求接口拉取用户信息。

@huangshizhan
Copy link

huangshizhan commented Oct 8, 2019

大佬麻烦看下这个问题 #22

@huangshizhan
Copy link

大佬,请问一下那个路由表由后台生成怎么处理

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

3 participants