perf: 优化添加模型,关闭时清除历史模型数据 (#463)

This commit is contained in:
shaohuzhang1 2024-05-15 16:07:50 +08:00 committed by GitHub
parent c2157230ed
commit cad10bb6a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -214,6 +214,7 @@ const close = () => {
base_form_data.value = { name: '', model_type: '', model_name: '' }
credential_form_data.value = {}
model_form_field.value = []
base_model_list.value = []
dialogVisible.value = false
}
const submit = () => {

View File

@ -218,6 +218,7 @@ const close = () => {
dynamicsFormRef.value?.ruleFormRef?.resetFields()
credential_form_data.value = {}
model_form_field.value = []
base_model_list.value = []
dialogVisible.value = false
}