Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
97bf1d85
Commit
97bf1d85
authored
Mar 07, 2026
by
ckken
Browse files
feat(ccswitch): use site_name as default provider name in import link
parent
207a493f
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/views/user/KeysView.vue
View file @
97bf1d85
...
@@ -1647,10 +1647,12 @@ const executeCcsImport = (row: ApiKey, clientType: 'claude' | 'gemini') => {
...
@@ -1647,10 +1647,12 @@ const executeCcsImport = (row: ApiKey, clientType: 'claude' | 'gemini') => {
};
};
}
}
})`
})`
const
providerName
=
(
publicSettings
.
value
?.
site_name
||
'
sub2api
'
).
trim
()
||
'
sub2api
'
const
params
=
new
URLSearchParams
({
const
params
=
new
URLSearchParams
({
resource
:
'
provider
'
,
resource
:
'
provider
'
,
app
:
app
,
app
:
app
,
name
:
'
sub2api
'
,
name
:
providerName
,
homepage
:
baseUrl
,
homepage
:
baseUrl
,
endpoint
:
endpoint
,
endpoint
:
endpoint
,
apiKey
:
row
.
key
,
apiKey
:
row
.
key
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment