This commit is contained in:
2026-06-29 11:54:13 +08:00
parent f4a6be6e39
commit 1ad9b0ff14
5 changed files with 16 additions and 7 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -28,8 +28,8 @@
}
})();
</script>
<script type="module" crossorigin src="/assets/index-DqXiP0qO.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-Dpio-rCr.css">
<script type="module" crossorigin src="/assets/index-B_unK_dD.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DgpxHlJ1.css">
</head>
<body>
<div id="root"></div>
+3 -2
View File
@@ -206,8 +206,9 @@
}
.login-copyright {
color: rgba(255,255,255,0.7);
font-size: 12px;
color: #666;
font-size: 14px;
font-weight: 600;
letter-spacing: 0.5px;
}
+9 -1
View File
@@ -259,7 +259,15 @@ const LoginPage: React.FC = () => {
};
const openPdf = (url: string) => {
if (url) window.open(`${API_BASE.replace(/\/api$/, '')}${url}`, '_blank');
if (!url) {
message.warning('暂未上传协议文件');
return;
}
if (url.startsWith('http://') || url.startsWith('https://')) {
window.open(url, '_blank');
} else {
window.open(`${API_BASE.replace(/\/api$/, '')}${url}`, '_blank');
}
};
return (