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到期自动退出登录,表单输入框闪一下就不见了,需要刷新页面才会显示 #5460

Closed
5 tasks done
jiuyi919 opened this issue Jan 24, 2025 · 6 comments

Comments

@jiuyi919
Copy link

Version

Vben Admin V5

Describe the bug?

Reproduction

token到期自动退出登录,表单输入框闪一下就不见了,需要刷新页面才会显示

System Info

token到期自动退出登录,表单输入框闪一下就不见了,需要刷新页面才会显示

Relevant log output

Validations

@jiuyi919
Copy link
Author

Image

@mynetfan
Copy link
Collaborator

Demo中未能复现

@jiuyi919
Copy link
Author

Demo中未能复现

Demo中未能复现

Image 我尝试的是没有刷新token逻辑

@jiuyi919
Copy link
Author

Image 找到原因是因为,路由重定向第一次有加在url地址上面,过一会马上又回去掉重定向地址,导致页面闪一下就不见了登录表单,但是目前没找到咋解决

@mynetfan
Copy link
Collaborator

mynetfan commented Feb 4, 2025

去掉await

@jiuyi919
Copy link
Author

jiuyi919 commented Feb 5, 2025

去掉await

尝试去掉可以了,谢谢

@mynetfan mynetfan closed this as completed Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants