提交 19671d72 作者: 翁进城

优化filter组件注释

上级 9d03eae8
......@@ -9,6 +9,7 @@ import { FilterOptionResp, mallApi } from "~/components/filter/api";
// 此函数在构建时被调用
export async function getStaticProps() {
//获取筛选数据,进行静态渲染
const brand = Filter.mallApi.brand();
const category = Filter.mallApi.category();
const model = Filter.mallApi.model();
......@@ -17,8 +18,6 @@ export async function getStaticProps() {
const res = await Promise.all([brand, category, part, model, quality]);
// 通过返回 { props: { posts } } 对象,Blog 组件
// 在构建时将接收到 `posts` 参数
return {
props: {
brandData: res[0].result || [],
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论