Skip to content

Commit d1aefdc

Browse files
committed
fix: When asker is empty, do not pass the current parameter
1 parent c526a27 commit d1aefdc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Diff for: ui/src/components/ai-chat/component/user-form/index.vue

+4-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,10 @@ const checkInputParam = () => {
323323
}
324324
}
325325
if (!api_form_data_context.value['asker']) {
326-
api_form_data_context.value['asker'] = getRouteQueryValue('asker')
326+
const asker = getRouteQueryValue('asker')
327+
if (asker) {
328+
api_form_data_context.value['asker'] = getRouteQueryValue('asker')
329+
}
327330
}
328331
329332
if (msg.length > 0) {

Diff for: ui/src/views/application/component/ReasoningParamSettingDialog.vue

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
:label="$t('views.application.applicationForm.form.reasoningContent.start')"
2020
>
2121
<el-input
22+
type="textarea"
2223
v-model="form.reasoning_content_start"
2324
:rows="6"
2425
maxlength="50"
@@ -29,6 +30,7 @@
2930
<el-col :span="12">
3031
<el-form-item :label="$t('views.application.applicationForm.form.reasoningContent.end')">
3132
<el-input
33+
type="textarea"
3234
v-model="form.reasoning_content_end"
3335
:rows="6"
3436
maxlength="50"

0 commit comments

Comments
 (0)