From 150742b8a373a1984c827fb6cee92c1877910459 Mon Sep 17 00:00:00 2001 From: Grand-cocoa <1075576561@qq.com49111108+grand-cocoa@users.noreply.github.com> Date: Wed, 12 Nov 2025 17:31:48 +0800 Subject: [PATCH] =?UTF-8?q?feat(auth):=20=E6=B7=BB=E5=8A=A0=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=BF=A1=E6=81=AF=E8=8E=B7=E5=8F=96=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=B9=B6=E4=BC=98=E5=8C=96=E7=99=BB=E5=BD=95=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 getUserInfo API 接口用于获取用户信息 - 在登录成功后调用 getUserInfo 接口获取用户数据 - 使用 Pinia 创建用户状态管理 store - 优化登录页面表单元素属性和事件绑定 - 调整标题显示逻辑,使用用户数据中的姓名 - 添加页面刷新功能,支持内容区域重新加载 - 禁用页面缩放和手势操作,优化移动端体验 - 修改页面标题为 Animo - 调整样式和布局,优化视觉效果 --- index.html | 24 +++++++++++++-- src/App.vue | 54 +++++++++++++++++++--------------- src/api/auth.ts | 6 ++++ src/components/login/Login.vue | 27 ++++++++++++----- src/stores/user.ts | 10 +++++++ 5 files changed, 87 insertions(+), 34 deletions(-) create mode 100644 src/stores/user.ts diff --git a/index.html b/index.html index 9e5fc8f..f8c23b0 100644 --- a/index.html +++ b/index.html @@ -3,11 +3,31 @@
- -