退款
This commit is contained in:
parent
f4f1f52e57
commit
82a1a7e995
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user