update:添加单页编译说明
This commit is contained in:
parent
1b72d9d4f5
commit
5b791716e2
@ -17,6 +17,11 @@ npm run build
|
||||
```
|
||||
生成的资源在dist目录中,将此目录中所有文件放置在待部署web目录即可。
|
||||
|
||||
#### 直播页面
|
||||
1、直接正常部署后,使用访问 /live.html 即可
|
||||
|
||||
2、单独域名部署,设置环境变量ONLY_LIVE=yes,使用正常编译即可
|
||||
|
||||
**使用docker**
|
||||
|
||||
[x] TODO
|
||||
|
@ -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: [{
|
@ -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(()=>{
|
||||
|
Loading…
x
Reference in New Issue
Block a user