1
This commit is contained in:
@@ -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)
|
||||
// 处理不同类型的错误
|
||||
|
||||
Reference in New Issue
Block a user