bugfix: 避免configParams出现null
This commit is contained in:
@@ -224,7 +224,13 @@
|
||||
try {
|
||||
const urlParams = new URLSearchParams<AgentParamsType>({
|
||||
...params,
|
||||
configParams: JSON.stringify(params.configParams)
|
||||
// configParams: JSON.stringify(params.configParams)
|
||||
configParams: JSON.stringify({
|
||||
type: params.configParams.type||'',
|
||||
region: params.configParams.region||'',
|
||||
style: params.configParams.style||'',
|
||||
temperature: params.configParams.temperature
|
||||
})
|
||||
})
|
||||
const BASEURL = import.meta.env.VITE_APP_URL
|
||||
|
||||
|
||||
@@ -783,9 +783,9 @@
|
||||
}
|
||||
|
||||
const params = {
|
||||
type: typeValue.value,
|
||||
area: areaValue.value,
|
||||
style: styleValue.value,
|
||||
type: typeValue.value || '',
|
||||
area: areaValue.value || '',
|
||||
style: styleValue.value || '',
|
||||
useReport: reportTags.value.length > 0,
|
||||
temperature: 0.7
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user