's'
This commit is contained in:
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user