bugfix: 避免configParams出现null

This commit is contained in:
2026-04-10 15:54:13 +08:00
parent c8fc36d1cc
commit 8806fbeb49
2 changed files with 11 additions and 5 deletions

View File

@@ -224,7 +224,13 @@
try { try {
const urlParams = new URLSearchParams<AgentParamsType>({ const urlParams = new URLSearchParams<AgentParamsType>({
...params, ...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 const BASEURL = import.meta.env.VITE_APP_URL

View File

@@ -783,9 +783,9 @@
} }
const params = { const params = {
type: typeValue.value, type: typeValue.value || '',
area: areaValue.value, area: areaValue.value || '',
style: styleValue.value, style: styleValue.value || '',
useReport: reportTags.value.length > 0, useReport: reportTags.value.length > 0,
temperature: 0.7 temperature: 0.7
} }