提交 51d723a4 作者: 龚洪江

修复:产品商城,租赁筛选

上级 a5279896
/** @type {import('next').NextConfig} */
let distDir = '.dev' //默认输出目录
let distDir = '.dev'; //默认输出目录
if (process.env.NODE_ENV === 'production') {
//生产环境用另一个目录构建,防止与dev冲突
distDir = '.next'
distDir = '.next';
}
const nextConfig = {
......@@ -21,16 +21,16 @@ const nextConfig = {
destination: '/home',
permanent: true,
},
]
];
},
async rewrites() {
return [
{
source: '/local/:path*',
//destination: "https://iuav.mmcuav.cn/:path*",
// destination: 'https://iuav.mmcuav.cn/:path*',
destination: 'https://test.iuav.shop/:path*',
},
]
];
},
images: {
remotePatterns: [
......@@ -45,6 +45,6 @@ const nextConfig = {
],
},
pageExtensions: ['page.tsx', 'page.ts', 'page.jsx', 'page.js'],
}
};
module.exports = nextConfig
module.exports = nextConfig;
......@@ -112,7 +112,10 @@ export default function EquipmentLeasing(props: Props) {
}, [abort]);
const onFilterChange = (filterResult: FilterResult, adapterFilterResult: AdapterResult) => {
console.log('filterResult', filterResult, adapterFilterResult);
setPageParams({
...pageParams,
pageNo: 1,
});
adapterFilterResult.categoryId = adapterFilterResult.categoryId?.map((item) => item.id);
setFilterResult(adapterFilterResult);
};
......
......@@ -32,6 +32,9 @@ export const Box = styled.div`
font-weight: bold;
color: #333333;
line-height: 24px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
&-right {
......
......@@ -70,7 +70,10 @@ export default function Mall(props: Props) {
}, []);
const onFilterChange = (filterResult: FilterResult, adapterFilterResult: AdapterResult) => {
console.log('filterResult', filterResult, adapterFilterResult);
setPageParams({
...pageParams,
pageNo: 1,
});
adapterFilterResult.categoryId = adapterFilterResult.categoryId?.map((item) => item.id);
setFilterResult(adapterFilterResult);
};
......@@ -103,8 +106,6 @@ export default function Mall(props: Props) {
alt=''
src={item.images}
className={styles.img}
width={116}
height={116}
preview={false}
></Image>
</div>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论