File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
ui/src/views/template/component Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 100100 </template >
101101 <el-select
102102 v-loading =" model_type_loading"
103- @change =" list_base_model($event)"
103+ @change =" list_base_model($event, true )"
104104 v-model =" base_form_data.model_type"
105105 class =" w-full m-2"
106106 placeholder =" 请选择模型类型"
@@ -241,8 +241,10 @@ const open = (provider: Provider) => {
241241 dialogVisible .value = true
242242}
243243
244- const list_base_model = (model_type : any ) => {
245- form_data .value .model_name = ' '
244+ const list_base_model = (model_type : any , change ? : boolean ) => {
245+ if (change ) {
246+ base_form_data .value .model_name = ' '
247+ }
246248 if (providerValue .value ) {
247249 ModelApi .listBaseModel (providerValue .value .provider , model_type , base_model_loading ).then (
248250 (ok ) => {
Original file line number Diff line number Diff line change 8080 </template >
8181 <el-select
8282 v-loading =" model_type_loading"
83- @change =" list_base_model($event)"
83+ @change =" list_base_model($event, true )"
8484 v-model =" base_form_data.model_type"
8585 class =" w-full m-2"
8686 placeholder =" 请选择模型类型"
@@ -203,7 +203,10 @@ const getModelForm = (model_name: string) => {
203203 })
204204 }
205205}
206- const list_base_model = (model_type : any ) => {
206+ const list_base_model = (model_type : any , change ? : boolean ) => {
207+ if (change ) {
208+ base_form_data .value .model_name = ' '
209+ }
207210 if (providerValue .value ) {
208211 ModelApi .listBaseModel (providerValue .value .provider , model_type , base_model_loading ).then (
209212 (ok ) => {
You can’t perform that action at this time.
0 commit comments