File tree 1 file changed +8
-3
lines changed
ui/src/components/ai-chat
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -153,8 +153,9 @@ const form_data = ref<any>({})
153
153
const api_form_data = ref <any >({})
154
154
const userFormRef = ref <InstanceType <typeof UserForm >>()
155
155
// 用户输入
156
- const firsUserInput = ref (true )
156
+ const firsUserInput = ref (false )
157
157
const showUserInput = ref (false )
158
+
158
159
// 初始表单数据(用于恢复)
159
160
const initialFormData = ref ({})
160
161
const initialApiFormData = ref ({})
@@ -184,10 +185,14 @@ watch(
184
185
firsUserInput .value = false
185
186
} else {
186
187
chartOpenId .value = ' '
187
- firsUserInput .value = true
188
+ if (isUserInput .value ) {
189
+ firsUserInput .value = true
190
+ } else if (props .type == ' debug-ai-chat' && isAPIInput .value ) {
191
+ firsUserInput .value = true
192
+ }
188
193
}
189
194
},
190
- { deep: true }
195
+ { deep: true , immediate: true }
191
196
)
192
197
193
198
watch (
You can’t perform that action at this time.
0 commit comments