- 新增 getUserInfo API 接口用于获取用户信息 - 在登录成功后调用 getUserInfo 接口获取用户数据 - 使用 Pinia 创建用户状态管理 store - 优化登录页面表单元素属性和事件绑定 - 调整标题显示逻辑,使用用户数据中的姓名 - 添加页面刷新功能,支持内容区域重新加载 - 禁用页面缩放和手势操作,优化移动端体验 - 修改页面标题为 Animo - 调整样式和布局,优化视觉效果 |
||
|---|---|---|
| .vscode | ||
| public | ||
| src | ||
| .env | ||
| .env.development | ||
| .gitattributes | ||
| .gitignore | ||
| .prettierrc.json | ||
| env.d.ts | ||
| index.html | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
Animo
This template should help get you started developing with Vue 3 in Vite.
Recommended IDE Setup
VS Code + Vue (Official) (and disable Vetur).
Recommended Browser Setup
- Chromium-based browsers (Chrome, Edge, Brave, etc.):
- Firefox:
Type Support for .vue Imports in TS
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.
Customize configuration
See Vite Configuration Reference.
Project Setup
npm install
Compile and Hot-Reload for Development
npm run dev
Type-Check, Compile and Minify for Production
npm run build