This commit is contained in:
eric
2025-09-08 16:27:49 +08:00
parent 39df8bcbf8
commit fa3e1d5924
15 changed files with 6 additions and 6 deletions

View File

@@ -387,7 +387,7 @@ const stopLive = async () => {
// 调用 FastAPI 停止接口
// const res = await fetch("http://192.168.31.103:8700/stop_live", {
const res = await fetch(`${location.protocol}//${location.hostname}8700/stop_live`, {
const res = await fetch(`${location.protocol}//${location.hostname}:8700/stop_live`, {
method: "POST",
headers: { "Content-Type": "application/json" },
@@ -417,7 +417,7 @@ const loopLive = async () => {
// 调用 FastAPI 后端接口
// const res = await fetch("http://192.168.31.103:8700/loop_Live", {
const res = await fetch(`${location.protocol}//${location.hostname}8700/loop_Live`, {
const res = await fetch(`${location.protocol}//${location.hostname}:8700/loop_Live`, {
method: "POST",
headers: { "Content-Type": "application/json" },