登录后跳转到home
This commit is contained in:
parent
b2543dc524
commit
b4eb747b52
@ -23,7 +23,7 @@ const handleLogin = async () => {
|
||||
|
||||
if (response.status === 200) {
|
||||
ElMessage.success('登录成功');
|
||||
router.push('/profile');
|
||||
router.push('/');
|
||||
} else {
|
||||
ElMessage.error('登录失败,请稍后再试');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user