1.7 KiB
1.7 KiB
Project Tasks
-
[Task 1] Global Message Component, API Encapsulation, and Login/Logout Integration
- Check/Implement Global Message Component
- Install axios
- Create
src/service/request/index.ts - Create
src/service/api/auth.ts - Update
src/stores/user.ts(Pinia + Persistence) - Integrate Login/Logout in
TheNavigation.vue - Install crypto-js and types
- Configure API secret in environment variables
- Update Axios request interceptor with signature logic
- Fix CORS by updating VITE_API_BASE_URL
- Refactor vite.config.ts to use loadEnv for dynamic proxy configuration
- Update .env.development with VITE_API_PROXY_TARGET
- Prioritize backend error message in Axios response interceptor
- Check TheNavigation.vue for reactive user state usage
- Update TheNavigation.vue template to toggle Login/User info based on store state
-
[Task 2] Score API Encapsulation and Business Integration
- Create
src/service/api/score.tswith types - Create
src/stores/score.ts - Integrate Get Score in
TheNavigation.vue - Integrate Save Score in
ScoreForm.vue
- Create
-
[Task 3] Enhance WMessage Component
- Add position support to
src/utils/message.ts(top/bottom/left/right/center)
- Add position support to