mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-07-13 15:37:26 +02:00
Add files via upload
This commit is contained in:
@@ -4375,15 +4375,6 @@ html[data-theme="dark"] .user-menu-dropdown {
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.login-brand-logo {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
margin: 0 auto 16px;
|
||||
border-radius: 14px;
|
||||
box-shadow: 0 6px 20px rgba(0, 102, 255, 0.2);
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.login-title {
|
||||
margin: 0;
|
||||
display: flex;
|
||||
|
||||
@@ -96,12 +96,9 @@ async function loadToken() {
|
||||
// 加载OpenAPI规范
|
||||
async function loadAPISpec() {
|
||||
try {
|
||||
let url = '/api/openapi/spec';
|
||||
if (currentToken) {
|
||||
url += '?token=' + encodeURIComponent(currentToken);
|
||||
}
|
||||
|
||||
const response = await fetch(url);
|
||||
const url = '/api/openapi/spec';
|
||||
const headers = currentToken ? { 'Authorization': `Bearer ${currentToken}` } : {};
|
||||
const response = await fetch(url, { headers });
|
||||
if (!response.ok) {
|
||||
if (response.status === 401) {
|
||||
showError(_t('apiDocs.errorLoginRequired'));
|
||||
|
||||
Reference in New Issue
Block a user