This commit is contained in:
xixi 2024-08-23 12:31:55 +08:00
parent f4f1f52e57
commit 82a1a7e995

View File

@ -9,6 +9,7 @@ import { useSelector, useDispatch } from 'react-redux'
import { get, put, downloadUrl } from '../../util/AjaxUtils'
import type { TableProps } from 'antd';
import { getMenuActive } from '../../util/cache'
import { useNavigate } from "react-router-dom";
interface DataType {
projName: string;
projPayment: string;
@ -26,6 +27,7 @@ import { useLocation } from 'react-router-dom'
export default function Refun() {
const height = window.innerHeight - 180;
const [messageApi, contextHolder] = message.useMessage();
const nav = useNavigate();
const [isLoading, setIsLoading] = useState(false)
const [page, setPage] = useState(1) // 分页
// const [total, setTotal] = useState(0) // 数据总数
@ -411,9 +413,11 @@ export default function Refun() {
}
})
}
// useEffect(()=>{
// getData(page)
// },[])
useEffect(() => {
if (!state) {
nav('/home')
}
}, [])
useEffect(() => {
// getData(1)
setPage(1)