fix(keys): grok-4.5 上下文窗口按 500k 对齐并修正账号测试 i18n mock

- UseKeyModal 中 grok-4.5 的 context_window / model_context_window /
  OpenCode 模型目录统一改为 500000,与 xAI 实际上下文一致
- UseKeyModal.spec 的 OpenCode 目录断言同步为 500000
- AccountTestModal.spec 补齐 imagePreviewAlt 的 i18n mock,
  跟上组件把 alt 文案迁到 i18n 之后的行为
This commit is contained in:
IanShaw027
2026-08-08 10:40:40 +08:00
parent b717ed9d0d
commit b7112d596f
3 changed files with 7 additions and 4 deletions
@@ -33,6 +33,9 @@ vi.mock('vue-i18n', async () => {
if (key === 'admin.accounts.imageReceived' && params?.count) {
return `received-${params.count}`
}
if (key === 'admin.accounts.imagePreviewAlt' && params?.index) {
return `test-image-${params.index}`
}
return messages[key] || key
}
})