fix: 修复登录成功后无法自动跳转的问题
This commit is contained in:
parent
4e11c94f9d
commit
c46aebb5cf
|
|
@ -2,13 +2,13 @@
|
||||||
# Version Configuration for Zodiac Collection Management System
|
# Version Configuration for Zodiac Collection Management System
|
||||||
|
|
||||||
# 当前版本号 (语义化版本:主版本。次版本.修订版)
|
# 当前版本号 (语义化版本:主版本。次版本.修订版)
|
||||||
VERSION=1.0.1
|
VERSION=1.0.3
|
||||||
|
|
||||||
# 版本代号 (可选)
|
# 版本代号 (可选)
|
||||||
VERSION_CODENAME="新生"
|
VERSION_CODENAME="新生"
|
||||||
|
|
||||||
# 发布日期
|
# 发布日期
|
||||||
RELEASE_DATE=2026-03-16
|
RELEASE_DATE=2026-03-18
|
||||||
|
|
||||||
# 版本说明
|
# 版本说明
|
||||||
VERSION_NOTES="Logo 显示修复 + 图片代理修复"
|
VERSION_NOTES="登录跳转修复"
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,7 @@ export default function Login() {
|
||||||
console.log('用户信息已保存')
|
console.log('用户信息已保存')
|
||||||
|
|
||||||
// 强制刷新页面,确保 React 状态更新
|
// 强制刷新页面,确保 React 状态更新
|
||||||
window.location.href = window.location.origin + window.location.pathname + '#/'
|
window.location.href = '/'
|
||||||
console.log('跳转首页')
|
console.log('跳转首页')
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('登录错误:', err)
|
console.error('登录错误:', err)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue