From 0e249b27e13fefa6717a8b3824ace5e28d64d96b Mon Sep 17 00:00:00 2001 From: imeepos Date: Fri, 26 Dec 2025 18:52:42 +0800 Subject: [PATCH] fix: bug --- app/(tabs)/index.tsx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/app/(tabs)/index.tsx b/app/(tabs)/index.tsx index ed96a4f..2a770ae 100644 --- a/app/(tabs)/index.tsx +++ b/app/(tabs)/index.tsx @@ -17,15 +17,7 @@ import { useFavoriteTemplates } from '@/hooks/data/use-favorite-templates' import { usePublicTemplates } from '@/hooks/data/use-public-templates' import { screenWidth } from '@/utils' import { cn } from '@/utils/cn' - -const BACKGROUND_VIDEOS = [ - 'https://cdn.roasmax.cn/material/b46f380532e14cf58dd350dbacc7c34a.mp4', - 'https://cdn.roasmax.cn/material/992e6c5d940c42feb71c27e556b754c0.mp4', - 'https://cdn.roasmax.cn/material/e4947477843f4067be7c37569a33d17b.mp4', -] - const CATEGORY_ID = `cat_iw83x5bg54fmjgvciju` - type MediaItem = { id: string type: 'image' | 'video' @@ -412,6 +404,7 @@ export default function Sync() { limit, page: 1, sortBy: 'createdAt', + categoryId: CATEGORY_ID, sortOrder: 'desc', }) if (error || !data?.templates) { @@ -438,6 +431,7 @@ export default function Sync() { limit, page: 1, sortBy: 'likeCount', + categoryId: CATEGORY_ID, sortOrder: 'desc', }) if (error || !data?.templates) { @@ -516,6 +510,7 @@ export default function Sync() { limit, page: pageNum, sortBy: 'createdAt', + categoryId: CATEGORY_ID, sortOrder: 'desc', }) if (error || !data?.templates) { @@ -532,6 +527,7 @@ export default function Sync() { limit, page: pageNum, sortBy: 'likeCount', + categoryId: CATEGORY_ID, sortOrder: 'desc', }) if (error || !data?.templates) {