Skip to content

Commit

Permalink
Merge pull request #150 from besscroft/v2
Browse files Browse the repository at this point in the history
fix: 修复瀑布流无法加载更多图片的问题。
  • Loading branch information
besscroft authored Nov 11, 2024
2 parents 96d51af + 0665838 commit a40d50a
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 a40d50a

Please sign in to comment.