This commit is contained in:
张成
2025-10-08 19:30:09 +08:00
parent 7e888970d3
commit 99f73eff84
6 changed files with 1339 additions and 3 deletions

View File

@@ -53,7 +53,11 @@ export default {
Page404
})
this.$Message.success('登录成功!')
window.location.reload()
// 跳转到首页(使用 location.href 触发完整页面加载)
setTimeout(() => {
window.location.href = window.location.origin + window.location.pathname + '#/'
}, 500)
} catch (error) {
console.error('登录失败:', error)
// 处理不同类型的错误