feat: add models cache store and fix search placeholder truncation

- Add useModelsStore with 30s cache for model list to reduce API calls
  - Refactor SystemPage to use cached models from store
  - Shorten ConfigPage search placeholder to prevent text truncation
This commit is contained in:
Supra4E8C
2025-12-13 01:35:08 +08:00
parent a7b77ffa25
commit da9469c5aa
6 changed files with 93 additions and 23 deletions

View File

@@ -551,7 +551,7 @@
"save_success": "配置已保存",
"error_yaml_not_supported": "服务器未返回 YAML 格式,请确认 /config.yaml 接口可用",
"editor_placeholder": "key: value",
"search_placeholder": "输入关键字后点击右侧搜索按钮(或 Enter进行搜索",
"search_placeholder": "搜索配置内容...",
"search_button": "搜索",
"search_no_results": "无结果",
"search_prev": "上一个",