提交 6df7b0db 作者: ZhangLingKun

功能:代码优化

上级 a453a195
流水线 #8794 已通过 于阶段
in 5 分 42 秒
...@@ -68,9 +68,11 @@ export const getServerSideProps = wrapper.getServerSideProps( ...@@ -68,9 +68,11 @@ export const getServerSideProps = wrapper.getServerSideProps(
}; };
// 依次获取接口数据 // 依次获取接口数据
await (async () => { await (async () => {
await getCourseDetail(); await Promise.all([
await getAppCategoryInfo(); getCourseDetail(),
await getQueryBrandGoods(); getAppCategoryInfo(),
getQueryBrandGoods(),
]);
})(); })();
return { props: { storeDetail, categoryList, goodsInfoList } }; return { props: { storeDetail, categoryList, goodsInfoList } };
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论