fix: 修复登录成功后无法自动跳转的问题

This commit is contained in:
菜鸟生产 2026-03-18 11:32:07 +08:00
parent 4e11c94f9d
commit c46aebb5cf
2 changed files with 4 additions and 4 deletions

View File

@ -2,13 +2,13 @@
# Version Configuration for Zodiac Collection Management System
# 当前版本号 (语义化版本:主版本。次版本.修订版)
VERSION=1.0.1
VERSION=1.0.3
# 版本代号 (可选)
VERSION_CODENAME="新生"
# 发布日期
RELEASE_DATE=2026-03-16
RELEASE_DATE=2026-03-18
# 版本说明
VERSION_NOTES="Logo 显示修复 + 图片代理修复"
VERSION_NOTES="登录跳转修复"

View File

@ -134,7 +134,7 @@ export default function Login() {
console.log('用户信息已保存')
// React
window.location.href = window.location.origin + window.location.pathname + '#/'
window.location.href = '/'
console.log('跳转首页')
} catch (err) {
console.error('登录错误:', err)