fix: 🧩 修复bug
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
//视频分类详情
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user