This commit is contained in:
quantulr
2023-12-11 15:25:05 +08:00
parent 3d812fe08e
commit 1228cceb41
6 changed files with 32 additions and 11 deletions

View File

@ -1,4 +1,5 @@
import request from "@/utils/request";
import { resolveStaticUrl } from "@/utils/url";
// 获取首页统计
export function getAllCount() {
@ -54,6 +55,14 @@ export function banner(params) {
url: "/app/config/list",
method: "get",
params,
}).then((resp) => {
resp.data.map((el) => {
if (el.images) {
el.images = resolveStaticUrl(el.images);
}
return el;
});
return resp;
});
}
@ -281,7 +290,7 @@ export const getEnterpriseMap = () =>
// /app/map/achievementMap
export const getAchievementMap = () =>
request({
url: "/app/map/achievementMap",
method: "get",
});
request({
url: "/app/map/achievementMap",
method: "get",
});