diff --git a/src/pages/help/helpInfo.tsx b/src/pages/help/helpInfo.tsx index b27ed09..58f3886 100644 --- a/src/pages/help/helpInfo.tsx +++ b/src/pages/help/helpInfo.tsx @@ -12,12 +12,13 @@ const HelpInfoPage: React.FC = () => { const intl = useIntl(); const [helpDetail, setHelpDetail] = useState(null); const [loading, setLoading] = useState(true); + let tabActiveKey = 'helpCenter'; useEffect(() => { // 获取URL中的id参数 const query = new URLSearchParams(window.location.search); const id = query.get('id'); - const tabActiveKey = query.get('tabActiveKey') || 'helpCenter'; + tabActiveKey = query.get('tabActiveKey') || 'helpCenter'; if (!id) { message.error(intl.formatMessage({ id: 'help.message.idNotFound' })); @@ -97,7 +98,11 @@ const HelpInfoPage: React.FC = () => { {/* */} {helpDetail.title} - {helpDetail.isAnswer == '1' ? '已回答' : '未回答'} + {tabActiveKey == 'helpCenter' ? ( + '' + ) : ( + {helpDetail.isAnswer == '1' ? '已回答' : '未回答'} + )}