fix: 🧩 修复bug

This commit is contained in:
2025-03-28 16:55:37 +08:00
parent 2694a0c905
commit e0f8d6c574
35 changed files with 165 additions and 101 deletions

View File

@@ -6,7 +6,6 @@ export const getBannerListApi = (params: any) => {
};
//新增
export const getBannerListSaveApi = (params: any) => {
console.log("1232323");
return http.post<any>(`${B}/save`, params, {
headers: {
"Content-Type": "application/x-www-form-urlencoded"
@@ -37,3 +36,7 @@ export const getBannerListExportApi = (params: any) => {
responseType: "arraybuffer"
});
};
//分类
export const getBannerClassListApi = () => {
return http.get<any>(`/banner/list`); //v1/banner/list
};

View File

@@ -26,5 +26,9 @@ export const getProductBuypassUpdateApi = (params: any) => {
//新增
export const getProductBuypassListSaveApi = (params: any) => {
return http.post<any>(`${PRODUCT_BUYPASS}/save`, params);
return http.post<any>(`${PRODUCT_BUYPASS}/save`, params, {
headers: {
"Content-Type": "application/x-www-form-urlencoded"
}
});
};

View File

@@ -26,3 +26,7 @@ export const getVideoListExportApi = (params: any) => {
responseType: "arraybuffer"
});
};
//视频分类
export const getVideoClassListApi = () => {
return http.get<any>(`/video/categorys`);
};