Commit 76ce2739 by haojie

保存草稿报错的问题

parent 6dc9204d
......@@ -494,8 +494,11 @@ const mergeCallback = (params: any) => {
// 首次播放
let list = realVideoList.value.filter((item: any) => item.remove === true);
if (!list.length) {
// takeMainVideo();
takeMainVideoV2();
// 首次回调后才开启主视频轮询
// 获取后台主视频
console.log('打开后台主视频轮询');
StartIntervalMainVideo();
}
} else {
console.log('回调格式错误');
......@@ -543,8 +546,6 @@ onMounted(async () => {
// 获取后台互动
startLiveInterval();
// 获取后台主视频
StartIntervalMainVideo();
// 本地轮询获取要播放的互动视频
openInterval();
// 本地轮询获取要播放的主视频
......
......@@ -330,14 +330,11 @@ const onSaveDrafts = async () => {
loading.value = true;
let res: any = await createDrafts(params);
if (res.code == 0) {
show_message('保存成功', 'success');
// 清空edit
store.commit('live/clearEditLive');
// 清空createLive
store.commit('live/clearCreateLive');
// 回首页
backHome();
submitSuccessed('保存成功');
}
loading.value = false;
} catch (e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment