feat: update

This commit is contained in:
yanghao05
2025-04-28 21:24:37 +08:00
parent 2df1a59a20
commit 75e39a0283

View File

@@ -41,6 +41,10 @@ const handleLogin = async () => {
try {
const resp = await authService.login(username.value, password.value);
const { token } = resp.data;
if (!token) {
alert('登录失败');
return;
}
authStore.setToken(token);
router.push('/');
} catch (error) {