fix: 优化端口

This commit is contained in:
丹尼尔
2026-03-11 11:36:05 +08:00
parent d3c5b4c27a
commit dae013dbeb
7 changed files with 48 additions and 14 deletions

View File

@@ -96,7 +96,8 @@
</div>
<script>
const $ = (id) => document.getElementById(id);
const API_BASE = 'http://localhost:8000';
// 相对路径,由 Node 代理到后端
const API_BASE = '';
async function callApi(path, options = {}) {
const url = API_BASE + path;
@@ -164,7 +165,8 @@
loadModels();
(function wsStatusCheck() {
const API_BASE = 'http://localhost:8000';
// 相对路径,由 Node 代理到后端
const API_BASE = '';
let wasConnected = false;
const CHECK_MS = 8000;
const t = setInterval(async () => {