From e8ada08aee56a4b232b884546dde8001e50b2c7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=87=E8=93=9D=E8=89=B2?= <565837861@qq.com> Date: Wed, 5 Mar 2025 18:18:15 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=9B=B4=E6=8D=A2=EF=BC=8C?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/App.jsx | 36 +++---------------- .../src/pages/Admin/Users/UserRow/index.jsx | 2 +- frontend/src/pages/DataAnalysis/index.jsx | 33 +++++++++-------- .../{Economics => GeneralView}/index.jsx | 14 +++++--- frontend/src/pages/Home/home.css | 6 ++-- frontend/src/pages/Home/index.jsx | 10 +++--- frontend/src/pages/Industry/index.jsx | 30 ---------------- frontend/src/pages/Report/index.jsx | 30 ---------------- frontend/src/pages/ReportGeneration/index.jsx | 15 ++++---- frontend/src/pages/Talents/index.jsx | 30 ---------------- frontend/src/pages/Tendency/index.jsx | 14 ++++---- frontend/src/pages/TrendPrediction/index.jsx | 30 ---------------- frontend/src/pages/Yuqingfenxi/index.jsx | 30 ---------------- frontend/src/utils/paths.js | 21 ++--------- 14 files changed, 61 insertions(+), 240 deletions(-) rename frontend/src/pages/{Economics => GeneralView}/index.jsx (62%) delete mode 100644 frontend/src/pages/Industry/index.jsx delete mode 100644 frontend/src/pages/Report/index.jsx delete mode 100644 frontend/src/pages/Talents/index.jsx delete mode 100644 frontend/src/pages/TrendPrediction/index.jsx delete mode 100644 frontend/src/pages/Yuqingfenxi/index.jsx diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 2853853..69313ea 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -12,7 +12,6 @@ import Login from "@/pages/Login"; import SimpleSSOPassthrough from "@/pages/Login/SSO/simple"; import OnboardingFlow from "@/pages/OnboardingFlow"; import i18n from "./i18n"; - import { PfpProvider } from "./PfpContext"; import { LogoProvider } from "./LogoContext"; import { FullScreenLoader } from "./components/Preloader"; @@ -23,13 +22,8 @@ const Home = lazy(() => import("@/pages/Home")); // 新首页 const PolicyLibrary = lazy(() => import("@/pages/PolicyLibrary")); // 政策库 const DataAnalysis = lazy(() => import("@/pages/DataAnalysis")); // 数据分析 const Tendency = lazy(() => import("@/pages/Tendency")); // 趋势洞察 -const Yuqingfenxi = lazy(() => import("@/pages/Yuqingfenxi")); // 分析详情 -const Economics = lazy(() => import("@/pages/Economics")); // 经济发展 -const Talents = lazy(() => import("@/pages/Talents")); // 人才分析 -const Industry = lazy(() => import("@/pages/Industry")); // 产业分析 -const TrendPrediction = lazy(() => import("@/pages/TrendPrediction")); // 趋势预测 const ReportGeneration = lazy(() => import("@/pages/ReportGeneration")); // 报告生成 -const Report = lazy(() => import("@/pages/Report")); // 报告生成1 +const GeneralView = lazy(() => import("@/pages/GeneralView")); // 数据详情 const InvitePage = lazy(() => import("@/pages/Invite")); const WorkspaceChat = lazy(() => import("@/pages/WorkspaceChat")); @@ -111,38 +105,18 @@ export default function App() { path="/home/Tendency" element={} /> - } - /> - } - /> - } - /> - } - /> - } - /> } + /> + } /> } /> - } - /> } /> {titleCase(user.role)} - {user.createdAt} + {new Date(user.createdAt).toLocaleDateString()} {canModify && (