mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-31 00:24:38 +00:00
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:
@@ -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
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user