refactor(frontend): update UI components for database migration

- Update UsageFooter component to handle new data structure
- Modify SkillsPage to work with database-backed skills management
- Ensure frontend compatibility with refactored backend
This commit is contained in:
YoVinchen
2025-11-22 23:28:35 +08:00
parent a2688603fb
commit 5a3420932b
2 changed files with 17 additions and 15 deletions

View File

@@ -111,12 +111,12 @@ export const SkillsPage = forwardRef<SkillsPageHandle, SkillsPageProps>(
const errorMessage =
error instanceof Error ? error.message : String(error);
// 使用错误解析器格式化错误,传入 "skills.uninstallFailed"
const { title, description } = formatSkillError(
errorMessage,
t,
"skills.uninstallFailed",
);
// 使用错误解析器格式化错误,传入 "skills.uninstallFailed"
const { title, description } = formatSkillError(
errorMessage,
t,
"skills.uninstallFailed",
);
toast.error(title, {
description,