mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: model params config show empty config
--bug=1050877 --user=刘瑞斌 【模型管理】-添加模型时,在高级设置中删除所有默认参数后,不展示参数添加按钮,无法再次添加参数 https://www.tapd.cn/57709429/s/1637477
This commit is contained in:
parent
91afbcd71a
commit
6fab88e891
|
|
@ -158,12 +158,12 @@
|
|||
</el-tab-pane>
|
||||
<el-tab-pane label="高级设置" name="advanced-info">
|
||||
<el-empty
|
||||
v-if="base_form_data.model_params_form?.length === 0"
|
||||
v-if="!base_form_data.model_type || !base_form_data.model_name"
|
||||
description="请先选择基础信息的模型类型和基础模型"
|
||||
/>
|
||||
<div class="flex-between mb-8" v-else>
|
||||
<h5>模型参数</h5>
|
||||
<el-button type="text" @click.stop="openAddDrawer()">
|
||||
<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'">
|
||||
<AppIcon iconName="Plus" class="add-icon" />添加
|
||||
</el-button>
|
||||
</div>
|
||||
|
|
@ -221,14 +221,7 @@
|
|||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
<el-button @click="close">取消</el-button>
|
||||
<el-button
|
||||
v-if="base_form_data.model_params_form?.length === 0"
|
||||
type="primary"
|
||||
@click="openAddDrawer"
|
||||
>
|
||||
添加
|
||||
</el-button>
|
||||
<el-button v-else type="primary" @click="submit" :loading="loading"> 添加 </el-button>
|
||||
<el-button type="primary" @click="submit" :loading="loading"> 添加 </el-button>
|
||||
</span>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
|
|
|||
Loading…
Reference in New Issue