feat: 🎸 优化了一些代码

This commit is contained in:
2025-08-21 10:26:31 +08:00
parent 939806a946
commit 649c188c45
5 changed files with 3 additions and 7 deletions

View File

@@ -1,5 +1,4 @@
import { useNavigate, useLocation } from "react-router-dom";
import { mockData } from "@/data/mockData";
import { Statistic } from "@arco-design/web-react";
import IconFont from "@/components/IconFont";
import Logo from "@/assets/images/Sidebar/logo.png";
@@ -10,7 +9,6 @@ import "./index.css";
const Sidebar = ({ isCollapsed, setIsCollapsed }) => {
const navigate = useNavigate();
const location = useLocation();
const { user } = mockData;
const handleNavClick = (path) => {
navigate(path);

View File

@@ -1,4 +1,3 @@
import React from "react";
import { getMonthDays } from "@/data/mockData";
const MonthView = ({

View File

@@ -1,4 +1,4 @@
import React, { useEffect, useRef } from "react";
import { useEffect, useRef } from "react";
import { getWeekDays } from "@/data/mockData";
const WeekView = ({ currentDate, events, onDateClick, onEventClick }) => {

View File

@@ -1,11 +1,10 @@
import React from "react";
import { useNavigate } from "react-router-dom";
import { mockData } from "@/data/mockData";
import "./index.css";
const PersonalDataDisplay = () => {
const navigate = useNavigate();
const { studyProgress, classRanking, studyStats } = mockData;
const { studyProgress, classRanking } = mockData;
// 点击跳转到个人档案,并传递上下文状态
const handleNavigateToProfile = (sourceType) => {

View File

@@ -14,7 +14,7 @@
box-sizing: border-box;
.homework-page-content-list {
width: 100%;
width: 1120px;
height: 360px;
border-radius: 8px;
background-color: #fff;