bugfix: 避免configParams出现null
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -499,7 +499,7 @@
|
|||||||
// 清理掉已被删除的标签引用(从 DOM 中移除的元素)
|
// 清理掉已被删除的标签引用(从 DOM 中移除的元素)
|
||||||
reportTags.value = reportTags.value.filter((tag) => tag.parentNode !== null)
|
reportTags.value = reportTags.value.filter((tag) => tag.parentNode !== null)
|
||||||
|
|
||||||
if (reportTags.value.length > 0 ) {
|
if (reportTags.value.length > 0) {
|
||||||
// 移除所有标签及其关联的零宽空格
|
// 移除所有标签及其关联的零宽空格
|
||||||
reportTags.value.forEach((tag) => {
|
reportTags.value.forEach((tag) => {
|
||||||
if (
|
if (
|
||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user