This commit is contained in:
2026-02-26 23:53:08 +09:00
parent 4b447e952b
commit 7d554e3950
2 changed files with 6 additions and 1 deletions
@@ -1,4 +1,5 @@
import { useQuery } from '@tanstack/react-query'
import { useEffect } from 'react'
import { Helmet } from 'react-helmet-async'
import { useLocation } from 'react-router-dom'
@@ -31,6 +32,10 @@ export default (() => {
const changes = data?.changes ?? []
const totalPages = data ? Math.ceil (data.count / limit) : 0
useEffect (() => {
document.querySelector ('table')?.scrollIntoView ({ behavior: 'smooth' })
}, [location.search])
return (
<MainArea>
<Helmet>
+1 -1
View File
@@ -85,7 +85,7 @@ export default (() => {
setUpdatedFrom (qUpdatedFrom)
setUpdatedTo (qUpdatedTo)
document.getElementsByTagName ('main')![0].scroll (0, 0)
document.querySelector ('table')?.scrollIntoView ({ behavior: 'smooth' })
}, [location.search])
const search = async () => {