diff --git a/client/src/App.jsx b/client/src/App.jsx index 68e64d7..0a18c66 100644 --- a/client/src/App.jsx +++ b/client/src/App.jsx @@ -16,13 +16,7 @@ const cssVars = ` --text-primary: #1a1a1a; --text-secondary: #666; --text-tertiary: #999; - --text-placeholder: #999; --border-light: #e8e8e8; - --shadow-card: 0 2px 8px rgba(0,0,0,0.08); - --color-blue: #4a90e2; - --color-orange: #f39c12; - --color-purple: #9b59b6; - --color-green: #27ae60; --tab-bg: #f0f2f5; --tab-bg-active: #333; --tab-text: #666; @@ -41,7 +35,6 @@ const cssVars = ` --text-secondary: #a0a0a0; --text-tertiary: #808080; --border-light: #333; - --shadow-card: none; --tab-bg: #2a2a2a; --tab-bg-active: #4a90e2; --tab-text: #808080; diff --git a/client/src/pages/Dashboard.jsx b/client/src/pages/Dashboard.jsx index 64a204a..5cc8d51 100644 --- a/client/src/pages/Dashboard.jsx +++ b/client/src/pages/Dashboard.jsx @@ -1,6 +1,6 @@ import { useState, useEffect, useCallback, useRef } from 'react'; import { Button, Spin, message, DatePicker } from 'antd'; -import { LogoutOutlined, ReloadOutlined, BugOutlined } from '@ant-design/icons'; +import { LogoutOutlined, ReloadOutlined } from '@ant-design/icons'; import { Lightning, ChartLine, ChartHistogram, Timer } from '@icon-park/react'; import { Chart, registerables } from 'chart.js'; import dayjs from 'dayjs'; @@ -108,20 +108,6 @@ export default function Dashboard({ onLogout }) { onLogout(); }; - const handleTestNotify = async () => { - try { - const res = await fetch('/api/test-notify'); - const data = await res.json(); - if (data.success) { - message.success('测试消息已发送,请检查通知渠道'); - } else { - message.error('发送失败'); - } - } catch { - message.error('发送失败'); - } - }; - const handleSendReport = async () => { try { const res = await fetch('/api/send-report'); @@ -362,19 +348,6 @@ body { margin: 0; } > 手动获取 -