This commit is contained in:
eric
2025-08-28 19:49:01 +08:00
parent 1b98ac6e72
commit f6dc0091f7
2 changed files with 3 additions and 3 deletions

0
frontend/dist/.gitkeep vendored Normal file
View File

View File

@@ -379,7 +379,7 @@ const stopLive = async () => {
const thread_id = props.url.replace(/\//g, "_"); const thread_id = props.url.replace(/\//g, "_");
// 调用 FastAPI 停止接口 // 调用 FastAPI 停止接口
const res = await fetch("http://192.168.31.245:8700/stop_live", { const res = await fetch("http://live.local:8700/stop_live", {
method: "POST", method: "POST",
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
body: JSON.stringify({ thread_id }) // 如果想停止全部可以 body: {} body: JSON.stringify({ thread_id }) // 如果想停止全部可以 body: {}
@@ -407,8 +407,8 @@ const startLive = async () => {
console.log('file_path',file_path) console.log('file_path',file_path)
// 调用 FastAPI 后端接口 // 调用 FastAPI 后端接口
// const res = await fetch("http://live.local:8700/start_live", { const res = await fetch("http://live.local:8700/start_live", {
const res = await fetch("http://192.168.31.245:8700/start_live", { // const res = await fetch("http://192.168.31.245:8700/start_live", {
method: "POST", method: "POST",
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },