fix: 优化端口
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user