fix: 移除服务列表重复请求
This commit is contained in:
1 parent
bf73c3ce08
commit
c907734076
1 file changed
+2
-6
@@ -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) => ({
|
||||||
|
|||||||
Reference in new issue
Block a user