fix(model): 将接口参数status改为enabled
统一将两处列表查询的参数从status改为enabled,匹配后端接口参数定义
This commit is contained in:
@@ -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 || [];
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user