fix: User input parameter occupancy issue (#2976)
Some checks failed
Typos Check / Spell Check with Typos (push) Waiting to run
sync2gitee / repo-sync (push) Has been cancelled

This commit is contained in:
shaohuzhang1 2025-04-24 17:39:44 +08:00 committed by GitHub
parent 1c6b0f8a86
commit 4ff1944b60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -153,8 +153,9 @@ const form_data = ref<any>({})
const api_form_data = ref<any>({})
const userFormRef = ref<InstanceType<typeof UserForm>>()
//
const firsUserInput = ref(true)
const firsUserInput = ref(false)
const showUserInput = ref(false)
//
const initialFormData = ref({})
const initialApiFormData = ref({})
@ -184,10 +185,14 @@ watch(
firsUserInput.value = false
} else {
chartOpenId.value = ''
firsUserInput.value = true
if (isUserInput.value) {
firsUserInput.value = true
} else if (props.type == 'debug-ai-chat' && isAPIInput.value) {
firsUserInput.value = true
}
}
},
{ deep: true }
{ deep: true, immediate: true }
)
watch(