mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 00:53:33 +00:00
Merge upstream changes and resolve conflicts
- Merged latest changes from Wei-Shaw/claude-relay-service - Resolved conflict in AccountForm.vue to support both Bedrock and improved platform switching logic - Maintained Bedrock integration while incorporating Gemini pricing improvements 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1619,9 +1619,13 @@ const handleGroupRefresh = async () => {
|
||||
}
|
||||
|
||||
// 监听平台变化,重置表单
|
||||
watch(() => form.value.platform, (newPlatform) => {
|
||||
watch(() => form.value.platform, (newPlatform, oldPlatform) => {
|
||||
// 处理添加方式的自动切换
|
||||
if (newPlatform === 'claude-console' || newPlatform === 'bedrock') {
|
||||
form.value.addType = 'manual' // Claude Console 和 Bedrock 只支持手动模式
|
||||
} else if (oldPlatform === 'claude-console' && (newPlatform === 'claude' || newPlatform === 'gemini')) {
|
||||
// 从 Claude Console 切换到其他平台时,恢复为 OAuth
|
||||
form.value.addType = 'oauth'
|
||||
}
|
||||
|
||||
// 平台变化时,清空分组选择
|
||||
|
||||
Reference in New Issue
Block a user