's'
This commit is contained in:
0
frontend/dist/.gitkeep
vendored
Normal file
0
frontend/dist/.gitkeep
vendored
Normal file
@@ -379,7 +379,7 @@ const stopLive = async () => {
|
||||
const thread_id = props.url.replace(/\//g, "_");
|
||||
|
||||
// 调用 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",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({ thread_id }) // 如果想停止全部可以 body: {}
|
||||
@@ -407,8 +407,8 @@ const startLive = async () => {
|
||||
console.log('file_path',file_path)
|
||||
|
||||
// 调用 FastAPI 后端接口
|
||||
// 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://live.local:8700/start_live", {
|
||||
// const res = await fetch("http://192.168.31.245:8700/start_live", {
|
||||
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
|
||||
Reference in New Issue
Block a user