src/pages/left/index.jsx
@@ -11,14 +11,13 @@ import CapacityCharts from './components/capacity-charts'; const Left = () => { const [isExpanded, setIsExpanded] = useState(true); // 定义动画属性 const [isExpanded, setIsExpanded] = useState(false); const containerAnimation = useSpring({ transform: isExpanded ? 'translate(0%)' : 'translateX(-100%)', config: { precision: 0.01 }, }); // 切换容器状态 const toggleContainer = () => { setIsExpanded(!isExpanded); };