fix: bug
This commit is contained in:
parent
af6daa4911
commit
0e249b27e1
|
|
@ -17,15 +17,7 @@ import { useFavoriteTemplates } from '@/hooks/data/use-favorite-templates'
|
||||||
import { usePublicTemplates } from '@/hooks/data/use-public-templates'
|
import { usePublicTemplates } from '@/hooks/data/use-public-templates'
|
||||||
import { screenWidth } from '@/utils'
|
import { screenWidth } from '@/utils'
|
||||||
import { cn } from '@/utils/cn'
|
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`
|
const CATEGORY_ID = `cat_iw83x5bg54fmjgvciju`
|
||||||
|
|
||||||
type MediaItem = {
|
type MediaItem = {
|
||||||
id: string
|
id: string
|
||||||
type: 'image' | 'video'
|
type: 'image' | 'video'
|
||||||
|
|
@ -412,6 +404,7 @@ export default function Sync() {
|
||||||
limit,
|
limit,
|
||||||
page: 1,
|
page: 1,
|
||||||
sortBy: 'createdAt',
|
sortBy: 'createdAt',
|
||||||
|
categoryId: CATEGORY_ID,
|
||||||
sortOrder: 'desc',
|
sortOrder: 'desc',
|
||||||
})
|
})
|
||||||
if (error || !data?.templates) {
|
if (error || !data?.templates) {
|
||||||
|
|
@ -438,6 +431,7 @@ export default function Sync() {
|
||||||
limit,
|
limit,
|
||||||
page: 1,
|
page: 1,
|
||||||
sortBy: 'likeCount',
|
sortBy: 'likeCount',
|
||||||
|
categoryId: CATEGORY_ID,
|
||||||
sortOrder: 'desc',
|
sortOrder: 'desc',
|
||||||
})
|
})
|
||||||
if (error || !data?.templates) {
|
if (error || !data?.templates) {
|
||||||
|
|
@ -516,6 +510,7 @@ export default function Sync() {
|
||||||
limit,
|
limit,
|
||||||
page: pageNum,
|
page: pageNum,
|
||||||
sortBy: 'createdAt',
|
sortBy: 'createdAt',
|
||||||
|
categoryId: CATEGORY_ID,
|
||||||
sortOrder: 'desc',
|
sortOrder: 'desc',
|
||||||
})
|
})
|
||||||
if (error || !data?.templates) {
|
if (error || !data?.templates) {
|
||||||
|
|
@ -532,6 +527,7 @@ export default function Sync() {
|
||||||
limit,
|
limit,
|
||||||
page: pageNum,
|
page: pageNum,
|
||||||
sortBy: 'likeCount',
|
sortBy: 'likeCount',
|
||||||
|
categoryId: CATEGORY_ID,
|
||||||
sortOrder: 'desc',
|
sortOrder: 'desc',
|
||||||
})
|
})
|
||||||
if (error || !data?.templates) {
|
if (error || !data?.templates) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue