This commit is contained in:
eric
2025-09-08 16:19:27 +08:00
parent c02a8f7172
commit 39df8bcbf8
14 changed files with 13 additions and 13 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

View File

@@ -125,10 +125,10 @@
}
}
</style>
<script type="module" crossorigin src="[{[ .StaticURL ]}]/assets/index-rBmUZe0u.js"></script>
<script type="module" crossorigin src="[{[ .StaticURL ]}]/assets/index-Dzasemas.js"></script>
<link rel="modulepreload" crossorigin href="[{[ .StaticURL ]}]/assets/dayjs-BaXUFriC.js">
<link rel="modulepreload" crossorigin href="[{[ .StaticURL ]}]/assets/i18n-UjFZsrt2.js">
<link rel="stylesheet" crossorigin href="[{[ .StaticURL ]}]/assets/index-Bw3R8OZH.css">
<link rel="stylesheet" crossorigin href="[{[ .StaticURL ]}]/assets/index-CCpZnTfb.css">
<script type="module">import.meta.url;import("_").catch(()=>1);(async function*(){})().next();if(location.protocol!="file:"){window.__vite_is_modern_browser=true}</script>
<script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy chunks, syntax error above and the same error below should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
</head>
@@ -149,6 +149,6 @@
<link rel="stylesheet" href="[{[ .StaticURL ]}]/custom.css" />
[{[ end ]}]
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
<script nomodule crossorigin id="vite-legacy-polyfill" src="[{[ .StaticURL ]}]/assets/polyfills-legacy-D8GbthlL.js"></script>
<script nomodule crossorigin id="vite-legacy-polyfill" src="[{[ .StaticURL ]}]/assets/polyfills-legacy-D8GbthlL.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="[{[ .StaticURL ]}]/assets/index-legacy-8ei4NIas.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>

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("http://127.0.0.1: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("http://127.0.0.1:8700/loop_Live", {
const res = await fetch(`${location.protocol}//${location.hostname}8700/loop_Live`, {
method: "POST",
headers: { "Content-Type": "application/json" },
@@ -447,7 +447,7 @@ const obsLive = async () => {
// 这里模拟 OBS 推流逻辑,你可以根据实际后端接口来调整
// const res = await fetch("http://192.168.31.103:8700/obs_live", {
const res = await fetch("http://127.0.0.1:8700/obs_live", {
const res = await fetch(`${location.protocol}//${location.hostname}:8700/obs_live`, {
method: "POST",
headers: { "Content-Type": "application/json" },
@@ -475,7 +475,7 @@ const startLive = async () => {
console.log('file_path', file_path)
// 调用 FastAPI 后端接口
const res = await fetch("http://192.168.31.103:8700/start_live", {
const res = await fetch(`${location.protocol}//${location.hostname}:8700/start_live`, {
// const res = await fetch("http://127.0.0.1:8700/start_live", {
method: "POST",