Skip to content

Commit

Permalink
perf: 优化添加模型,关闭时清除历史模型数据 (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed May 15, 2024
1 parent c215723 commit cad10bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ui/src/views/template/component/CreateModelDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down
1 change: 1 addition & 0 deletions ui/src/views/template/component/EditModel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit cad10bb

Please sign in to comment.