修改省局的端口的判断为51707

This commit is contained in:
2025-11-07 11:12:43 +08:00
parent 855d74b979
commit 6c09285ac9
4 changed files with 17 additions and 16 deletions
+5 -5
View File
@@ -46,13 +46,13 @@ export default function Index() {
time: ''
});
// 检查是否通过51708端口访问
const [isPort51708, setIsPort51708] = useState(false);
// 检查是否通过51707端口访问
const [isPort51707, setIsPort51707] = useState(false);
useEffect(() => {
if (typeof window !== 'undefined') {
setIsPort51708(window.location.port === '51708');
// setIsPort51708(window.location.port === '5178');
setIsPort51707(window.location.port === '51707');
// setIsPort51707(window.location.port === '5178');
}
}, []);
@@ -163,7 +163,7 @@ export default function Index() {
<div className="modules-container">
{/* 合同管理模块 - 51708端口时隐藏 */}
{!isPort51708 && (
{!isPort51707 && (
<div
className="module-card"
onClick={() => handleModuleClick('/contract-template/search', 'contract')}