修改省局的端口的判断为51707
This commit is contained in:
@@ -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')}
|
||||
|
||||
Reference in New Issue
Block a user