diff --git a/src/routes/index.jsx b/src/routes/index.jsx
new file mode 100644
index 0000000..11460bd
--- /dev/null
+++ b/src/routes/index.jsx
@@ -0,0 +1,173 @@
+import { lazy } from "react";
+
+const Dashboard = lazy(() => import("@/pages/Dashboard"));
+const CalendarPage = lazy(() => import("@/pages/CalendarPage"));
+const LivePage = lazy(() => import("@/pages/LivePage"));
+const HomeworkPage = lazy(() => import("@/pages/HomeworkPage"));
+const ProjectLibraryPage = lazy(() => import("@/pages/ProjectLibraryPage"));
+const PersonalProfile = lazy(() => import("@/pages/PersonalProfile"));
+const CareerTreePage = lazy(() => import("@/pages/CareerTreePage"));
+const CompanyJobsPage = lazy(() => import("@/pages/CompanyJobsPage"));
+const CompanyJobsListPage = lazy(() => import("@/pages/CompanyJobsListPage"));
+const JobStrategyPage = lazy(() => import("@/pages/JobStrategyPage"));
+const JobStrategyDetailPage = lazy(() =>
+ import("@/pages/JobStrategyDetailPage")
+);
+const InterviewSimulationPage = lazy(() =>
+ import("@/pages/InterviewSimulationPage")
+);
+const ExpertSupportPage = lazy(() => import("@/pages/ExpertSupportPage"));
+const Portfolio = lazy(() => import("@/pages/Portfolio"));
+const PublicCourses = lazy(() => import("@/pages/PublicCourses"));
+const ResumeInterviewPage = lazy(() => import("@/pages/ResumeInterviewPage"));
+
+export default [
+ {
+ showMenu: false,
+ routes: [
+ {
+ path: "/",
+ element:
,
+ },
+ ],
+ },
+ {
+ name: "个人",
+ showMenu: true,
+ routes: [
+ {
+ path: "/dashboard",
+ name: "主页",
+ element:
,
+ icon: "",
+ showMenuItem: true,
+ },
+ {
+ path: "/profile",
+ name: "个人档案",
+ element:
,
+ icon: "",
+ showMenuItem: true,
+ },
+ {
+ path: "/calendar",
+ name: "日历",
+ element:
,
+ icon: "",
+ showMenuItem: true,
+ },
+ ],
+ },
+ {
+ name: "课程",
+ showMenu: true,
+ routes: [
+ {
+ path: "/public-courses",
+ name: "公共课直播间",
+ element:
,
+ icon: "",
+ showMenuItem: true,
+ },
+ {
+ path: "/live",
+ name: "课程直播间",
+ element:
,
+ icon: "",
+ showMenuItem: true,
+ },
+ {
+ path: "/career-tree",
+ name: "就业管家知识树",
+ element:
,
+ icon: "",
+ showMenuItem: true,
+ },
+ {
+ path: "/homework",
+ name: "课后作业",
+ element:
,
+ icon: "",
+ showMenuItem: true,
+ },
+ {
+ path: "/job-strategy",
+ name: "定制求职策略",
+ element:
,
+ icon: "",
+ showMenuItem: true,
+ },
+ {
+ path: "/job-strategy-detail",
+ name: "定制求职策略详情",
+ element:
,
+ showMenu: false,
+ icon: "",
+ },
+ {
+ path: "/interview-simulation",
+ name: "线下面试模拟",
+ element:
,
+ icon: "",
+ showMenuItem: true,
+ },
+ ],
+ },
+ {
+ name: "资源",
+ showMenu: true,
+ routes: [
+ {
+ path: "/expert-support",
+ name: "专家支持中心",
+ element:
,
+ icon: "",
+ showMenuItem: true,
+ },
+ {
+ path: "/company-jobs",
+ name: "企业内推岗位",
+ element:
,
+ icon: "",
+ showMenuItem: true,
+ },
+ {
+ path: "/company-jobs-list",
+ name: "企业内推岗位列表",
+ element:
,
+ showMenu: false,
+ icon: "",
+ },
+ {
+ path: "/resume-interview",
+ name: "我的简历与面试",
+ element:
,
+ icon: "",
+ showMenuItem: true,
+ },
+ {
+ path: "/project-library",
+ name: "我的项目库",
+ element:
,
+ icon: "",
+ showMenuItem: true,
+ },
+ {
+ path: "/portfolio",
+ name: "我的作品集",
+ element:
,
+ icon: "",
+ showMenuItem: true,
+ },
+ ],
+ },
+ {
+ showMenu: false,
+ routes: [
+ {
+ path: "*",
+ element:
,
+ },
+ ],
+ },
+];
diff --git a/src/services/index.js b/src/services/index.js
new file mode 100644
index 0000000..e69de29
diff --git a/src/utils/request.js b/src/utils/request.js
new file mode 100644
index 0000000..a01bf32
--- /dev/null
+++ b/src/utils/request.js
@@ -0,0 +1,43 @@
+// 引入axios
+import axios from "axios";
+
+// 创建axios实例
+const service = axios.create({
+ baseURL: "", // 基础URL,根据实际项目配置
+ timeout: 5000, // 请求超时时间
+ headers: {
+ "Content-Type": "application/json;charset=utf-8",
+ },
+});
+
+// 请求拦截器
+service.interceptors.request.use(
+ (config) => {
+ // 可以在这里添加token等信息
+ const token = localStorage.getItem("token");
+ if (token) {
+ config.headers["Authorization"] = `Bearer ${token}`;
+ }
+ return config;
+ },
+ (error) => {
+ return Promise.reject(error);
+ }
+);
+
+// 响应拦截器
+service.interceptors.response.use(
+ (response) => {
+ // 处理响应数据
+ const res = response.data;
+ return res;
+ },
+ (error) => {
+ // 处理响应错误
+ console.error("请求错误:", error);
+ return Promise.reject(error);
+ }
+);
+
+// 导出请求方法
+export default service;