diff --git a/pages/DashboardPage.tsx b/pages/DashboardPage.tsx index a8b2c53..35fe3b1 100644 --- a/pages/DashboardPage.tsx +++ b/pages/DashboardPage.tsx @@ -273,12 +273,6 @@ export const DashboardPage: React.FC = () => { } }; - // 关闭右侧面板时,重置图表渲染状态 - const handleCloseRightPanel = () => { - setRightPanelVisible(false); - setShouldRenderCharts(false); - }; - const getDimensionColor = (id: string) => { const colorMap: Record = { 'valuation': { left: 'bg-blue-500', bg: 'bg-white', hover: 'hover:bg-gray-50', icon: 'bg-blue-50 text-blue-500' }, @@ -395,14 +389,10 @@ export const DashboardPage: React.FC = () => {
{/* Left Panel: Rating Snapshot Table */} -
-
+
+
-
+

资产评级表

- {rightPanelVisible && ( - - )}
- {!rightPanelVisible && ( -
综合估值、资金、宏观、基本面四大维度,多视角量化评估资产投资价值
- )} +
综合估值、资金、宏观、基本面四大维度,多视角量化评估资产投资价值
- {/* 维度布局:右侧展开时在大屏幕(>1440px)显示2列,否则1列;未展开时两列 */} -
+ {/* 维度布局:右侧展开时在大屏幕(>1440px)显示2列,否则1列 */} +
{modules.map((group) => { const colors = getDimensionColor(group.id); @@ -623,7 +597,6 @@ export const DashboardPage: React.FC = () => {
{/* Right Panel: Charts */} - {rightPanelVisible && (
@@ -683,7 +656,6 @@ export const DashboardPage: React.FC = () => {
- )}
diff --git a/vite.config.ts b/vite.config.ts index 950e2e2..478cdbd 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -7,7 +7,7 @@ export default defineConfig(({ mode }) => { return { base: './', server: { - port: 3000, + port: 3100, host: '0.0.0.0', }, plugins: [react()],