feat: 重构Company和Concept页面

This commit is contained in:
zdl
2025-10-18 08:14:26 +08:00
parent b46ee4a18e
commit 3821b88f28
2 changed files with 23 additions and 22 deletions

View File

@@ -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 (
<Text fontSize="xs" color="gray.500">
{STATUS_MESSAGES[wechatStatus]}
</Text>
);
};
// 渲染状态提示文本 - 已注释掉,如需使用可取消注释
// const renderStatusText = () => {
// if (!wechatAuthUrl || wechatStatus === WECHAT_STATUS.NONE || wechatStatus === WECHAT_STATUS.EXPIRED) {
// return null;
// }
// return (
// <Text fontSize="xs" color="gray.500">
// {STATUS_MESSAGES[wechatStatus]}
// </Text>
// );
// };
return (
<VStack spacing={2} display="flex" alignItems="center" justifyContent="center">