mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
fix: 修复API Keys页面的undefined错误
- 修复filteredAndSortedApiKeys未定义错误,改为使用sortedApiKeys - 添加缺失的分页相关变量定义(currentPage, pageSize, totalPages等) - 添加paginatedApiKeys计算属性实现分页功能 - 修复CreateApiKeyModal和EditApiKeyModal中localAccounts防御性编程 - 添加筛选条件变化时重置页码的逻辑 - 修复"Cannot read properties of undefined (reading 'length')"错误 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -699,7 +699,12 @@ onMounted(async () => {
|
||||
supportedClients.value = await clientsStore.loadSupportedClients()
|
||||
availableTags.value = await apiKeysStore.fetchTags()
|
||||
// 初始化账号数据
|
||||
localAccounts.value = props.accounts
|
||||
if (props.accounts) {
|
||||
localAccounts.value = {
|
||||
claude: props.accounts.claude || [],
|
||||
gemini: props.accounts.gemini || []
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
// 刷新账号列表
|
||||
|
||||
Reference in New Issue
Block a user