fix: 🧩 修复bug

This commit is contained in:
2025-04-01 15:15:35 +08:00
parent 716b383a87
commit af5894dd5a
25 changed files with 112 additions and 82 deletions

View File

@@ -37,6 +37,6 @@ export const getBannerListExportApi = (params: any) => {
});
};
//分类
export const getBannerClassListApi = (params: any) => {
export const getBannerClassListApi = (params?: any) => {
return http.get<any>(`/banner/list`, params); //v1/banner/list
};

View File

@@ -26,6 +26,6 @@ export const getCategorySortApi = (params: any) => {
return http.post<any>(`${ATT_C}/sort/${params.id}`, { sort: params.sort });
};
//下载分类下拉列表
export const getCategorysApi = (params: any) => {
export const getCategorysApi = (params?: any) => {
return http.get<any>(`/attachment/categorys`, params);
};

View File

@@ -36,7 +36,7 @@ export const getProductListSortApi = (params: any) => {
const { id, sort } = params;
return http.post<any>(`${PRODUCT}/sort/${id}`, { sort });
};
// getProductCategoryListApi
export const getProductCategoryListApi = () => {
return http.get<any>(`/product/categorys`);
// 产品分类
export const getProductCategoryListApi = (params?: any) => {
return http.get<any>(`/product/categorys`, params);
};

View File

@@ -1,7 +1,7 @@
import http from "@/api";
const VIDEO_CATEGORY = `video/category`;
// 视频分类分页列表
export const getVideoClassListApi = (params: any) => {
export const getVideoClassListApi = (params?: any) => {
return http.get<any>(`${VIDEO_CATEGORY}/index`, params);
};
//视频分类详情

View File

@@ -27,6 +27,6 @@ export const getVideoListExportApi = (params: any) => {
});
};
//视频分类
export const getVideoClassListApi = (params: any) => {
export const getVideoClassListApi = (params?: any) => {
return http.get<any>(`/video/categorys`, params);
};