feat: 实现登录功能,包括用户名和密码输入、表单验证及错误处理

This commit is contained in:
2025-12-24 23:09:14 +08:00
parent 21cbb60480
commit 2a3e951acb
3 changed files with 117 additions and 14 deletions

View File

@@ -61,7 +61,7 @@ const router = createRouter({
]
},
{ path: '/auth/login', name: 'login', component: TitlePage, meta: { title: '登录' } },
{ path: '/auth/login', name: 'login', component: () => import('@/views/pages/auth/Login.vue'), meta: { title: '登录' } },
{ path: '/auth/register', name: 'register', component: () => import('@/views/pages/auth/Register.vue'), meta: { title: '注册' } },
{ path: '/auth/forgot-password', name: 'forgotPassword', component: TitlePage, meta: { title: '忘记密码' } },
{ path: '/auth/verify', name: 'verify', component: TitlePage, meta: { title: '验证(邮箱/手机)' } },