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

Bug: 服务器生成的token过期后,前端页面刷新时,跳转至登录页面加载慢 #4188

Closed
5 tasks done
ncncld opened this issue Aug 18, 2024 · 0 comments · Fixed by #4204
Closed
5 tasks done
Labels
bug Something isn't working

Comments

@ncncld
Copy link

ncncld commented Aug 18, 2024

Version

Vben Admin V5

Describe the bug?

后端采用python fastapi,设置token失效时间为2分钟,前端登录成功后,自动跳转至首页,等待2分钟后,通过浏览器刷新页面,弹窗登录过期,需要重新登陆,并自动进行了跳转,但跳转进度条很慢,页面无法正常跳转,手动再次通过浏览器刷新页面,页面瞬间跳转至登录页面。

Reproduction

图1:页面登录成功时,chrome提示是否保存账号密码,账号栏为空。
1 1
图2:登录超过2分钟时,通过浏览器刷新页面,无法正常跳转至登录页面,需要再次刷新页面才能正常调整至登录页面
1 2
图3:无法正常跳转至登录页面时,浏览器警告信息
1 3

System Info

.

Relevant log output

No response

Validations

@likui628 likui628 added bug Something isn't working and removed bug: pending triage labels Aug 20, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Sep 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants