mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-02-03 11:20:50 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f6563490a6 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -17,6 +17,7 @@ dist-ssr
|
||||
*.local
|
||||
|
||||
# Editor directories and files
|
||||
settings.local.json
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
|
||||
@@ -281,7 +281,7 @@ export function OAuthPage() {
|
||||
{t('auth_login.oauth_callback_button')}
|
||||
</Button>
|
||||
</div>
|
||||
{state.callbackStatus === 'success' && (
|
||||
{state.callbackStatus === 'success' && state.status === 'waiting' && (
|
||||
<div className="status-badge success" style={{ marginTop: 8 }}>
|
||||
{t('auth_login.oauth_callback_status_success')}
|
||||
</div>
|
||||
|
||||
@@ -82,6 +82,10 @@ class ApiClient {
|
||||
(config) => {
|
||||
// 设置 baseURL
|
||||
config.baseURL = this.apiBase;
|
||||
if (config.url) {
|
||||
// Normalize deprecated Gemini endpoint to the current path.
|
||||
config.url = config.url.replace(/\/generative-language-api-key\b/g, '/gemini-api-key');
|
||||
}
|
||||
|
||||
// 添加认证头
|
||||
if (this.managementKey) {
|
||||
|
||||
Reference in New Issue
Block a user