bugfix: configparams必须有参数字段
This commit is contained in:
@@ -131,9 +131,9 @@
|
||||
if (initialData) {
|
||||
// 等待页面渲染完成后自动发送初始消息
|
||||
params.configParams = {
|
||||
type: initialData.type,
|
||||
region: initialData.area,
|
||||
style: initialData.style,
|
||||
type: initialData.type || '',
|
||||
region: initialData.area || '',
|
||||
style: initialData.style || '',
|
||||
temperature: 0.7
|
||||
}
|
||||
params.needSuggestion = initialData.needSuggestion || false
|
||||
@@ -227,9 +227,7 @@
|
||||
configParams: JSON.stringify(params.configParams)
|
||||
})
|
||||
const BASEURL = import.meta.env.VITE_APP_URL
|
||||
// console.log('params', params)
|
||||
|
||||
// debugger
|
||||
|
||||
const response = await fetch(`${BASEURL}${chatUrl}?${urlParams.toString()}`, {
|
||||
method: 'GET',
|
||||
signal: abortController.signal
|
||||
@@ -636,11 +634,11 @@
|
||||
params.versionID = ''
|
||||
sketchList.value = []
|
||||
params.useReport = false
|
||||
|
||||
|
||||
if (project) {
|
||||
params.configParams.type = project.type
|
||||
params.configParams.region = project.area
|
||||
params.configParams.style = project.style
|
||||
params.configParams.type = project.type || ''
|
||||
params.configParams.region = project.area || ''
|
||||
params.configParams.style = project.style || ''
|
||||
params.configParams.temperature = project.temperature
|
||||
params.projectID = project.id
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user