mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 00:53:33 +00:00
feat: droid的apikey页面增加一键复制全部
This commit is contained in:
@@ -4841,11 +4841,23 @@ const handleGroupRefresh = async () => {
|
||||
// 处理 API Key 管理模态框刷新
|
||||
const handleApiKeyRefresh = async () => {
|
||||
// 刷新账户信息以更新 API Key 数量
|
||||
if (props.account?.id) {
|
||||
if (!props.account?.id) {
|
||||
return
|
||||
}
|
||||
|
||||
const refreshers = [
|
||||
typeof accountsStore.fetchDroidAccounts === 'function'
|
||||
? accountsStore.fetchDroidAccounts
|
||||
: null,
|
||||
typeof accountsStore.fetchAllAccounts === 'function' ? accountsStore.fetchAllAccounts : null
|
||||
].filter(Boolean)
|
||||
|
||||
for (const refresher of refreshers) {
|
||||
try {
|
||||
await accountsStore.fetchAccounts()
|
||||
await refresher()
|
||||
return
|
||||
} catch (error) {
|
||||
console.error('Failed to refresh account data:', error)
|
||||
console.error('刷新账户列表失败:', error)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user