优化页码总数,适配大小屏
This commit is contained in:
@@ -45,7 +45,7 @@ export async function loader({ request }: LoaderFunctionArgs) {
|
||||
const type = url.searchParams.get('type') || '';
|
||||
const sortBy = url.searchParams.get('sortBy') || 'relevance';
|
||||
const page = parseInt(url.searchParams.get('page') || '1');
|
||||
const pageSize = 6;
|
||||
const pageSize = 12
|
||||
|
||||
try {
|
||||
// 根据sortBy值设置数据库排序参数
|
||||
|
||||
Reference in New Issue
Block a user