File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
ui/src/components/ai-chat Expand file tree Collapse file tree 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>({})
153153const api_form_data = ref <any >({})
154154const userFormRef = ref <InstanceType <typeof UserForm >>()
155155// 用户输入
156- const firsUserInput = ref (true )
156+ const firsUserInput = ref (false )
157157const showUserInput = ref (false )
158+
158159// 初始表单数据(用于恢复)
159160const initialFormData = ref ({})
160161const initialApiFormData = ref ({})
@@ -184,10 +185,14 @@ watch(
184185 firsUserInput .value = false
185186 } else {
186187 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+ }
188193 }
189194 },
190- { deep: true }
195+ { deep: true , immediate: true }
191196)
192197
193198watch (
You can’t perform that action at this time.
0 commit comments