update:添加单页编译说明

This commit is contained in:
LittleBoy 2025-01-22 23:15:01 +08:00
parent 1b72d9d4f5
commit 5b791716e2
3 changed files with 7 additions and 2 deletions

View File

@ -17,6 +17,11 @@ npm run build
```
生成的资源在dist目录中将此目录中所有文件放置在待部署web目录即可。
#### 直播页面
1、直接正常部署后使用访问 /live.html 即可
2、单独域名部署设置环境变量ONLY_LIVE=yes使用正常编译即可
**使用docker**
[x] TODO

View File

@ -36,7 +36,7 @@
<script src="https://web.sdk.qcloud.com/player/tcplayer/release/v5.2.0/tcplayer.v5.2.0.min.js"></script>
<script>
function init(){
fetch('http://live.s1.wm-app.xyz/api/v1/tencent/get_pull_url').then(r=>r.json()).then(ret=>{
fetch('/api/v1/tencent/get_pull_url').then(r=>r.json()).then(ret=>{
console.log(ret)
TCPlayer('player-container', {
sources: [{

View File

@ -55,7 +55,7 @@ export default function VideoIndex() {
// 判断是否有生成中的视频
if (list.filter(s => s.status == VideoStatus.Generating).length > 0) {
// 每5s重新获取一次最新数据
setTimer(()=>setTimeout(() => loadList(false), 5000) as number);
setTimer(()=>setTimeout(() => loadList(false), 5000) as any);
}
}).catch(showErrorToast)
.finally(()=>{