fix(model): 将接口参数status改为enabled

统一将两处列表查询的参数从status改为enabled,匹配后端接口参数定义
This commit is contained in:
2026-05-15 09:26:42 +08:00
parent a835f54c67
commit 49995dfbc2
2 changed files with 2 additions and 2 deletions

View File

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

View File

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