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() { load() {
this.setData({ loading: true, error: "" }); this.setData({ loading: true, error: "" });
Promise.all([ Promise.all([request("/public/offerings"), request("/public/brand")])
request("/public/offerings"), .then(([offerings, brand]) => {
request("/public/offerings"),
request("/public/brand"),
])
.then(([offerings, services, brand]) => {
const labels = getTemplate(brand.templateKey); const labels = getTemplate(brand.templateKey);
const source = offerings; const source = offerings;
const mapped = source.map((item) => ({ const mapped = source.map((item) => ({