From 3821b88f28c07897f564b9e5ed8a2efa306fdb07 Mon Sep 17 00:00:00 2001
From: zdl <3489966805@qq.com>
Date: Sat, 18 Oct 2025 08:14:26 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E9=87=8D=E6=9E=84Company=E5=92=8CConce?=
=?UTF-8?q?pt=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Auth/WechatRegister.js | 27 ++++++++++++---------------
src/views/Company/CompanyOverview.js | 18 +++++++++++-------
2 files changed, 23 insertions(+), 22 deletions(-)
diff --git a/src/components/Auth/WechatRegister.js b/src/components/Auth/WechatRegister.js
index 3771abe8..fd5a1ef7 100644
--- a/src/components/Auth/WechatRegister.js
+++ b/src/components/Auth/WechatRegister.js
@@ -10,7 +10,7 @@ import {
} from "@chakra-ui/react";
import { FaQrcode } from "react-icons/fa";
import { useNavigate } from "react-router-dom";
-import { authService, WECHAT_STATUS, STATUS_MESSAGES } from "../../services/authService";
+import { authService, WECHAT_STATUS } from "../../services/authService";
import { logger } from "../../utils/logger";
// 配置常量
@@ -332,20 +332,17 @@ export default function WechatRegister() {
};
}, [wechatStatus]); // 当状态变化时重新计算
- /**
- * 渲染状态提示文本
- */
- const renderStatusText = () => {
- if (!wechatAuthUrl || wechatStatus === WECHAT_STATUS.NONE || wechatStatus === WECHAT_STATUS.EXPIRED) {
- return null;
- }
-
- return (
-
- {STATUS_MESSAGES[wechatStatus]}
-
- );
- };
+ // 渲染状态提示文本 - 已注释掉,如需使用可取消注释
+ // const renderStatusText = () => {
+ // if (!wechatAuthUrl || wechatStatus === WECHAT_STATUS.NONE || wechatStatus === WECHAT_STATUS.EXPIRED) {
+ // return null;
+ // }
+ // return (
+ //
+ // {STATUS_MESSAGES[wechatStatus]}
+ //
+ // );
+ // };
return (
diff --git a/src/views/Company/CompanyOverview.js b/src/views/Company/CompanyOverview.js
index 0f8372c1..aaae364f 100644
--- a/src/views/Company/CompanyOverview.js
+++ b/src/views/Company/CompanyOverview.js
@@ -36,6 +36,7 @@ import {
} from '@chakra-ui/icons';
import ReactECharts from 'echarts-for-react';
+import { logger } from '../../../utils/logger';
// API配置
const API_BASE_URL = process.env.NODE_ENV === 'production' ? "" : (process.env.REACT_APP_API_URL || 'http://localhost:5001');
@@ -762,13 +763,16 @@ const CompanyAnalysisComplete = ({ stockCode: propStockCode }) => {
} catch (err) {
setError(err.message);
- toast({
- title: '数据加载失败',
- description: err.message,
- status: 'error',
- duration: 3000,
- isClosable: true,
- });
+ logger.error('CompanyOverview', 'loadData', err, { stockCode });
+
+ // ❌ 移除数据加载失败toast
+ // toast({
+ // title: '数据加载失败',
+ // description: err.message,
+ // status: 'error',
+ // duration: 3000,
+ // isClosable: true,
+ // });
} finally {
setLoading(false);
}