Files
BlackFruit-UI/js
yiqiu 4eb134bea9
All checks were successful
continuous-integration/drone/push Build is passing
修复注册按钮显示问题 - 使用计算后的样式检查登录状态
问题:JavaScript 检查的是 inline style.display 而不是计算后的样式
- HTML 中 no-login 元素有 style="display: none"
- JavaScript 看到 style.display === 'none' 判断已登录
- 实际上 CSS 已经设置 display: flex !important

解决方案:
- 使用 window.getComputedStyle() 获取实际应用的样式
- 添加 else 分支确保默认显示未登录状态
- 显式设置 inline style.display = 'flex' 来覆盖 HTML 中的 display: none

现在注册按钮应该正常显示!

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-17 16:41:51 +08:00
..
2025-11-22 01:14:47 +08:00
2025-11-20 12:30:45 +08:00
2025-11-20 12:30:45 +08:00
2025-11-20 12:30:45 +08:00
2025-11-20 12:30:45 +08:00
2025-11-20 12:30:45 +08:00
2025-11-20 12:30:45 +08:00
2025-11-21 15:13:52 +08:00
2025-11-20 12:30:45 +08:00
2025-11-20 12:30:45 +08:00
2025-11-20 12:30:45 +08:00
2025-11-22 01:14:47 +08:00
2025-11-22 19:17:19 +08:00
2025-11-20 12:30:45 +08:00
2025-11-20 12:30:45 +08:00
2025-11-20 12:30:45 +08:00
2025-11-20 12:30:45 +08:00
2025-11-20 12:30:45 +08:00