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