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

请求在longin前就会请求,如何更改 #2

Open
403648809 opened this issue Nov 2, 2017 · 1 comment
Open

请求在longin前就会请求,如何更改 #2

403648809 opened this issue Nov 2, 2017 · 1 comment

Comments

@403648809
Copy link

感谢提供如此好的例子。
我有个2个问题,一致处理不了。
1: 没有登录前就会发出get请求,我要如何把他禁止掉。
2: get有缓存,这个缓存怎么禁止掉

@yxy9022
Copy link
Owner

yxy9022 commented Dec 8, 2017

1、判断session,如果没有登录,请求直接跳转到登录页面,或者返回没有登录的提示。axios有拦截器的。
2、可以给get请求带上时间戳。

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