- 添加 Login.vue 组件,包含用户名、密码输入及登录、注册、取消功能 - 添加 LoginProcess.vue 组件,管理登录注册流程切换 - 添加 Register.vue 组件占位 - 配置 axios 请求拦截器及环境变量类型定义 - 更新 App.vue 登录流程,替换原有 passkey 登录逻辑 - 添加 slide-up 动画样式并移除旧动画定义 - 更新依赖 tdesign-mobile-vue 为 tdesign-vue-next - 配置开发环境与生产环境 BASE_URL - 调整布局样式,优化登录界面显示效果 |
||
|---|---|---|
| .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