diff --git a/ui/src/views/template/component/CreateModelDialog.vue b/ui/src/views/template/component/CreateModelDialog.vue index 525357f8e..d82240314 100644 --- a/ui/src/views/template/component/CreateModelDialog.vue +++ b/ui/src/views/template/component/CreateModelDialog.vue @@ -134,7 +134,6 @@ import type { FormField } from '@/components/dynamics-form/type' import DynamicsForm from '@/components/dynamics-form/index.vue' import type { FormRules } from 'element-plus' import { MsgSuccess } from '@/utils/message' -import { QuestionFilled } from '@element-plus/icons-vue' const providerValue = ref() const dynamicsFormRef = ref>() @@ -214,6 +213,7 @@ const list_base_model = (model_type: any) => { const close = () => { base_form_data.value = { name: '', model_type: '', model_name: '' } credential_form_data.value = {} + model_form_field.value = [] dialogVisible.value = false } const submit = () => { diff --git a/ui/src/views/template/component/EditModel.vue b/ui/src/views/template/component/EditModel.vue index b7a7afa2b..d33334467 100644 --- a/ui/src/views/template/component/EditModel.vue +++ b/ui/src/views/template/component/EditModel.vue @@ -128,7 +128,6 @@ import type { FormField } from '@/components/dynamics-form/type' import DynamicsForm from '@/components/dynamics-form/index.vue' import type { FormRules } from 'element-plus' import { MsgSuccess } from '@/utils/message' -import { QuestionFilled } from '@element-plus/icons-vue' import AppIcon from '@/components/icons/AppIcon.vue' const providerValue = ref() @@ -218,6 +217,7 @@ const close = () => { base_form_data.value = { name: '', model_type: '', model_name: '' } dynamicsFormRef.value?.ruleFormRef?.resetFields() credential_form_data.value = {} + model_form_field.value = [] dialogVisible.value = false } diff --git a/ui/src/views/template/index.vue b/ui/src/views/template/index.vue index 00ca3d8ff..f5a3ef0f3 100644 --- a/ui/src/views/template/index.vue +++ b/ui/src/views/template/index.vue @@ -70,7 +70,6 @@ ref="createModelRef" @submit="list_model" @change="openCreateModel($event)" - :key="dialogState.createModelDialogKey" >