File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
ui/src/views/template/component Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 158158 </el-tab-pane >
159159 <el-tab-pane label =" 高级设置" name =" advanced-info" >
160160 <el-empty
161- v-if =" base_form_data.model_params_form?.length === 0 "
161+ v-if =" ! base_form_data.model_type || !base_form_data.model_name "
162162 description =" 请先选择基础信息的模型类型和基础模型"
163163 />
164164 <div class =" flex-between mb-8" v-else >
165165 <h5 >模型参数</h5 >
166- <el-button type =" text" @click.stop =" openAddDrawer()" >
166+ <el-button type =" text" @click.stop =" openAddDrawer()" :disabled = " base_form_data.model_type !== 'TTS' && base_form_data.model_type !== 'LLM' && base_form_data.model_type !== 'IMAGE' && base_form_data.model_type !== 'TTI' " >
167167 <AppIcon iconName =" Plus" class =" add-icon" />添加
168168 </el-button >
169169 </div >
221221 <template #footer >
222222 <span class =" dialog-footer" >
223223 <el-button @click =" close" >取消</el-button >
224- <el-button
225- v-if =" base_form_data.model_params_form?.length === 0"
226- type =" primary"
227- @click =" openAddDrawer"
228- >
229- 添加
230- </el-button >
231- <el-button v-else type =" primary" @click =" submit" :loading =" loading" > 添加 </el-button >
224+ <el-button type =" primary" @click =" submit" :loading =" loading" > 添加 </el-button >
232225 </span >
233226 </template >
234227 </el-dialog >
You can’t perform that action at this time.
0 commit comments