fix(model,settings): 给模型查询接口添加上status=1参数
在两个模型列表查询的请求参数中新增status=1,仅查询启用状态的模型数据
This commit is contained in:
@@ -211,6 +211,7 @@ const fetchModelList = async () => {
|
|||||||
pageSize: pagination.pageSize,
|
pageSize: pagination.pageSize,
|
||||||
modelName: searchParams.modelName || undefined,
|
modelName: searchParams.modelName || undefined,
|
||||||
modelType: props.modelType, // 使用传入的 modelType
|
modelType: props.modelType, // 使用传入的 modelType
|
||||||
|
status: 1,
|
||||||
};
|
};
|
||||||
const res: any = await getModelModuleList(params);
|
const res: any = await getModelModuleList(params);
|
||||||
modelList.value = res.data?.list || [];
|
modelList.value = res.data?.list || [];
|
||||||
|
|||||||
@@ -1015,6 +1015,7 @@ const fetchChatModelList = async () => {
|
|||||||
pageSize: chatModelPagination.pageSize,
|
pageSize: chatModelPagination.pageSize,
|
||||||
modelType: 1, // 传递 modelType=1 给后端,获取推理模型
|
modelType: 1, // 传递 modelType=1 给后端,获取推理模型
|
||||||
modelName: chatModelSearchKeyword.value || undefined,
|
modelName: chatModelSearchKeyword.value || undefined,
|
||||||
|
status: 1,
|
||||||
});
|
});
|
||||||
chatModelList.value = res.data?.list || [];
|
chatModelList.value = res.data?.list || [];
|
||||||
chatModelPagination.total = res.data?.total || 0;
|
chatModelPagination.total = res.data?.total || 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user