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