mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-25 17:22:55 +00:00
fix: User input parameter occupancy issue (#2976)
This commit is contained in:
parent
1c6b0f8a86
commit
4ff1944b60
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue