更新
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// 全局配置
|
||||
const API_BASE_URL = '/api';
|
||||
const API_BASE_URL = '.';
|
||||
|
||||
// DOM 加载完成后执行
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
@@ -65,7 +65,7 @@ if (typeof window.showNotification === 'undefined') {
|
||||
// 加载初始数据(主要用于服务器状态)
|
||||
function loadInitialData() {
|
||||
// 加载服务器状态
|
||||
fetch(`${API_BASE_URL}/status`)
|
||||
fetch(`${API_BASE_URL}/api/status`)
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
// 更新服务器状态指示器
|
||||
|
||||
Reference in New Issue
Block a user