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
+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 (