|
@@ -445,7 +445,7 @@ const mainApp = createApp({
|
|
|
method: 'POST',
|
|
method: 'POST',
|
|
|
headers: {
|
|
headers: {
|
|
|
'Content-Type': 'application/json',
|
|
'Content-Type': 'application/json',
|
|
|
- 'Authorization': this.config.apiKey ? `Bearer ${this.config.apiKey}` : undefined,
|
|
|
|
|
|
|
+ ...(this.config.apiKey ? {'Authorization': `Bearer ${this.config.apiKey}`} : {})
|
|
|
},
|
|
},
|
|
|
body: JSON.stringify(params),
|
|
body: JSON.stringify(params),
|
|
|
signal: abortController.signal,
|
|
signal: abortController.signal,
|