feat: 🎸 更新了一部分接口请求信息
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
import { useState } from "react";
|
||||
import { useSelector } from "react-redux";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { mapJobList, mapInterviewList } from "@/utils/dataMapper";
|
||||
import JobList from "./components/JobList";
|
||||
import { getJobsList, getInterviewsList, getCurrentStudent } from "@/services";
|
||||
import { getJobsList, getInterviewsList } from "@/services";
|
||||
import InfiniteScroll from "@/components/InfiniteScroll";
|
||||
|
||||
import "./index.css";
|
||||
const PAGE_SIZE = 10;
|
||||
|
||||
const CompanyJobsPage = () => {
|
||||
const studentInfo = useSelector((state) => state.student.studentInfo);
|
||||
const [isExpand, setIsExpand] = useState(false); // 是否展开
|
||||
const [jobs, setJobs] = useState([]);
|
||||
const [jobsListPage, setJobsListPage] = useState(1);
|
||||
@@ -21,14 +23,11 @@ const CompanyJobsPage = () => {
|
||||
// 获取面试信息
|
||||
const fetchInterviewsData = async () => {
|
||||
try {
|
||||
let studentId = null;
|
||||
const currentStudent = await getCurrentStudent();
|
||||
studentId = currentStudent?.id;
|
||||
if (studentId) {
|
||||
if (studentInfo?.id) {
|
||||
const res = await getInterviewsList({
|
||||
page: interviewsPage,
|
||||
pageSize: PAGE_SIZE,
|
||||
studentId: studentId,
|
||||
studentId: studentInfo?.id,
|
||||
status: "SCHEDULED",
|
||||
});
|
||||
if (res.success) {
|
||||
|
||||
Reference in New Issue
Block a user