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]: 管理后台升级后在查看评论的页面回复或刷新会退出登录状态 || [Bug]: After the management background is upgraded, replying or refreshing the page for viewing comments will log out of the login state. #2590

Open
elkan1788 opened this issue Jun 30, 2024 · 2 comments
Labels
bug Something isn't working Inactive

Comments

@elkan1788
Copy link

elkan1788 commented Jun 30, 2024

问题描述 | Describe the bug

在访问后台管理时,按页面顶部的升级提示,在vercel环境重新部署进行升级,升级后的版本为: @waline/admin v0.25.3 ,然后登录到后台管理,进行评论答复(答复是提交成功的)或刷新页面时,都会退出到登录界面。

#2219 的问题表现类似,尝试过勾选下次自动登录,但是问题依旧存在的。

另外发现一个问题,就是在输入完用户名后,直接按回车键提示”请输入密码“,但在输入密码后,登录按钮还是灰色不可用,按回车键也没有任何反应。

登录按钮失效

浏览器环境: Edge123.0.2420.81 和 火狐 127.0

问题网站 | Website URL

https://waline.lisenhui.cn/ui

服务部署在哪里? | Where your waline deploy?

Vercel (Default)

数据存储在哪里?| Where your comment data store?

LeanCloud(https://leancloud.app)


Problem description | Describe the bug

When accessing the backend management, follow the upgrade prompt at the top of the page and redeploy in the vercel environment to upgrade. The upgraded version is: @waline/admin v0.25.3, then log in to the backend management and reply to comments (the reply is Submit Successfully) or when refreshing the page, you will exit to the login interface.

Similar to the problem #2219, I tried to check the box to automatically log in next time, but the problem still exists.

Another problem I discovered is that after entering the user name, I directly press the Enter key to prompt "Please enter the password." However, after entering the password, the login button is still gray and unavailable, and nothing happens when pressing the Enter key.

Login button invalid

Browser environment: Edge123.0.2420.81 and Firefox 127.0

Question Website | Website URL

https://waline.lisenhui.cn/ui

Where is the service deployed? | Where your waline deploy?

Vercel (Default)

Where is the data stored? | Where your comment data store?

LeanCloud(https://leancloud.app)

@elkan1788 elkan1788 added the bug Something isn't working label Jun 30, 2024
@github-actions github-actions bot changed the title [Bug]: 管理后台升级后在查看评论的页面回复或刷新会退出登录状态 [Bug]: 管理后台升级后在查看评论的页面回复或刷新会退出登录状态 || [Bug]: After the management background is upgraded, replying or refreshing the page for viewing comments will log out of the login state. Jun 30, 2024
@lizheming
Copy link
Collaborator

lizheming commented Jul 1, 2024

可以检查下 localStorage 内是否有 token 字段写入成功,保活依赖本地存储,若开启隐私模式等可能会导致失败。


You can check whether the token field in localStorage is written successfully. Keep-alive relies on local storage. If privacy mode is turned on, etc., it may cause failure.

@elkan1788
Copy link
Author

elkan1788 commented Jul 2, 2024

检查过了,确认在会话和本地存储中都有token的值存在。
image


Checked and confirmed that the token value exists in the session and local storage.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Inactive
Projects
None yet
Development

No branches or pull requests

2 participants