fix: 移除服务列表重复请求

This commit is contained in:
que01 committed 2026-09-21 19:57:02 +08:00
1 parent bf73c3ce08
commit c907734076
1 file changed
+2 -6
+2 -6
View File
@@ -7,12 +7,8 @@ Page({
},
load() {
this.setData({ loading: true, error: "" });
Promise.all([
request("/public/offerings"),
request("/public/offerings"),
request("/public/brand"),
])
.then(([offerings, services, brand]) => {
Promise.all([request("/public/offerings"), request("/public/brand")])
.then(([offerings, brand]) => {
const labels = getTemplate(brand.templateKey);
const source = offerings;
const mapped = source.map((item) => ({