update:模型配置删除接口,只需要id参数

This commit is contained in:
hrz
2025-04-05 21:55:05 +08:00
parent d2e8d1c261
commit d53230245f
4 changed files with 34 additions and 36 deletions
+2 -3
View File
@@ -101,7 +101,7 @@
<div class="batch-actions">
<el-button size="mini" @click="selectAll" style="width: 75px; background: #606ff3">{{ isAllSelected ?
'取消全选' : '全选'
}}</el-button>
}}</el-button>
<el-button size="mini" type="danger" icon="el-icon-delete" @click="batchDelete">
删除
</el-button>
@@ -229,9 +229,8 @@ export default {
}).then(() => {
const deletePromises = this.selectedModels.map(model =>
new Promise(resolve => {
// TODO: 删除获取model.id
Api.model.deleteModel(
this.activeTab,
model.configJson?.provider || '',
model.id,
({ data }) => resolve(data.code === 0)
)