fix(model,settings): 给模型查询接口添加上status=1参数

在两个模型列表查询的请求参数中新增status=1,仅查询启用状态的模型数据
This commit is contained in:
2026-05-15 09:23:36 +08:00
parent 6ac6cc4659
commit a835f54c67
2 changed files with 2 additions and 0 deletions

View File

@@ -211,6 +211,7 @@ const fetchModelList = async () => {
pageSize: pagination.pageSize,
modelName: searchParams.modelName || undefined,
modelType: props.modelType, // 使用传入的 modelType
status: 1,
};
const res: any = await getModelModuleList(params);
modelList.value = res.data?.list || [];

View File

@@ -1015,6 +1015,7 @@ const fetchChatModelList = async () => {
pageSize: chatModelPagination.pageSize,
modelType: 1, // 传递 modelType=1 给后端,获取推理模型
modelName: chatModelSearchKeyword.value || undefined,
status: 1,
});
chatModelList.value = res.data?.list || [];
chatModelPagination.total = res.data?.total || 0;