[backend] fix: 修复异常处理和类型转换问题

This commit is contained in:
xsl
2026-01-26 11:53:40 +08:00
parent 7ccc2a6ac6
commit 83e05bf85f
28639 changed files with 2506458 additions and 93 deletions
@@ -1,5 +1,4 @@
import React, { useEffect, useState } from 'react';
import { authAPI } from '../../services/auth';
import { projectAPI } from '../../services/project';
const Dashboard = () => {
+2 -1
View File
@@ -1,10 +1,11 @@
import React, { useState, useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
import { useAuth } from '../../contexts/AuthContext';
import { projectAPI } from '../../services/project';
const ProjectList = ({ mode = 'list' }) => {
const { user } = useAuth();
const navigate = useNavigate();
const { user } = useAuth();
const [list, setList] = useState([]);
const [total, setTotal] = useState(0);
const [loading, setLoading] = useState(false);
@@ -1,5 +1,4 @@
import React, { useState, useEffect } from 'react';
import { authAPI } from '../../services/auth';
import { projectAPI } from '../../services/project';
const Statistics = () => {