Skip to content

Commit

Permalink
fix: 修复瀑布流无法加载更多图片的问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
besscroft committed Nov 11, 2024
1 parent 966aae6 commit 0665838
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hooks/useSWRPageTotalHook.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import useSWR from 'swr'
import { ImageHandleProps } from '~/types'

export const useSWRPageTotalHook = ({ args, totalHandle, tag }: ImageHandleProps) => {
const { data, error, isLoading, isValidating, mutate } = useSWR([args, tag],
export const useSWRPageTotalHook = ({ args, totalHandle, album }: ImageHandleProps) => {
const { data, error, isLoading, isValidating, mutate } = useSWR([args, album],
() => {
return totalHandle(tag)
return totalHandle(album)
})

return {
Expand Down

0 comments on commit 0665838

Please sign in to comment.