const { data, total, run } = usePagination<AxiosRespPage<Student>, StudentQueryDto[]>((d) =>
axios.get('/api/students/q', { params: d }), {
defaultParams: [dto.value],
pagination: {
currentKey: 'page',
pageSizeKey: 'size',
totalKey: 'data.data.total'
}
}
)
同一个文件里面的get方法正常访问
问题已解决,报403的是edge浏览器,用火狐就正常了