mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-11 18:10:49 +08:00
fix #82 后台登录成功但前端报错
This commit is contained in:
@@ -78,7 +78,7 @@ function login() {
|
||||
store.dispatch('auth/updateAvatar', avatar)
|
||||
|
||||
// 跳转到首页或回原始页面
|
||||
router.push(store.state.auth.originalPath)
|
||||
router.push(store.state.auth.originalPath ?? '/')
|
||||
})
|
||||
.catch((error: any) => {
|
||||
// 登录失败,显示错误提示
|
||||
|
||||
Reference in New Issue
Block a user