@@ -139,7 +139,7 @@ const handleLogin = async () => {
router.push('/')
} catch (error) {
console.error('登录失败:', error)
- alert('登录失败,请重试')
+ ElMessage.error(error.data.msg||'登录失败,请重试')
// 登录失败时刷新验证码
refreshCaptcha()
} finally {