新增:管理后台前端页面,以及openspec内容。

This commit is contained in:
2025-12-24 20:15:28 +08:00
parent 6d7ed38105
commit 845f1c6618
64 changed files with 9017 additions and 6 deletions

View File

@@ -0,0 +1,18 @@
# Change: Fix Frontend Issues and Add Best Practices
## Why
The frontend project has some issues that need to be fixed, including:
1. Sass @import rules deprecation warnings (will be removed in Dart Sass 3.0.0)
2. Theme store initialization order error causing `ReferenceError: Cannot access 'themeStore' before initialization`
This change aims to fix these issues and establish best practices to avoid similar problems in future frontend development.
## What Changes
- Fix theme store initialization order by initializing Pinia first before using stores
- Replace Sass @import rules with @use rules to eliminate deprecation warnings
- Add best practices documentation for frontend development
## Impact
- Affected specs: frontend-integration
- Affected code: admin-web/src/main.js, admin-web/src/styles/main.scss
- Dependencies: None