mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 09:38:02 +00:00
Merge pull request #360 from Edric-Li/feature/remove-account-type-restriction
feat: 移除API Key账号绑定的专属类型限制
This commit is contained in:
@@ -298,12 +298,8 @@ const filteredGroups = computed(() => {
|
|||||||
|
|
||||||
// 过滤的 OAuth 账号
|
// 过滤的 OAuth 账号
|
||||||
const filteredOAuthAccounts = computed(() => {
|
const filteredOAuthAccounts = computed(() => {
|
||||||
let accounts = sortedAccounts.value.filter(
|
let accounts = sortedAccounts.value.filter((a) =>
|
||||||
(a) =>
|
props.platform === 'claude' ? a.platform === 'claude-oauth' : a.platform !== 'claude-console'
|
||||||
a.accountType === 'dedicated' &&
|
|
||||||
(props.platform === 'claude'
|
|
||||||
? a.platform === 'claude-oauth'
|
|
||||||
: a.platform !== 'claude-console')
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if (searchQuery.value) {
|
if (searchQuery.value) {
|
||||||
@@ -318,9 +314,7 @@ const filteredOAuthAccounts = computed(() => {
|
|||||||
const filteredConsoleAccounts = computed(() => {
|
const filteredConsoleAccounts = computed(() => {
|
||||||
if (props.platform !== 'claude') return []
|
if (props.platform !== 'claude') return []
|
||||||
|
|
||||||
let accounts = sortedAccounts.value.filter(
|
let accounts = sortedAccounts.value.filter((a) => a.platform === 'claude-console')
|
||||||
(a) => a.accountType === 'dedicated' && a.platform === 'claude-console'
|
|
||||||
)
|
|
||||||
|
|
||||||
if (searchQuery.value) {
|
if (searchQuery.value) {
|
||||||
const query = searchQuery.value.toLowerCase()
|
const query = searchQuery.value.toLowerCase()
|
||||||
|
|||||||
Reference in New Issue
Block a user