Commit 76ce2739 by haojie

保存草稿报错的问题

parent 6dc9204d
...@@ -494,8 +494,11 @@ const mergeCallback = (params: any) => { ...@@ -494,8 +494,11 @@ const mergeCallback = (params: any) => {
// 首次播放 // 首次播放
let list = realVideoList.value.filter((item: any) => item.remove === true); let list = realVideoList.value.filter((item: any) => item.remove === true);
if (!list.length) { if (!list.length) {
// takeMainVideo();
takeMainVideoV2(); takeMainVideoV2();
// 首次回调后才开启主视频轮询
// 获取后台主视频
console.log('打开后台主视频轮询');
StartIntervalMainVideo();
} }
} else { } else {
console.log('回调格式错误'); console.log('回调格式错误');
...@@ -543,8 +546,6 @@ onMounted(async () => { ...@@ -543,8 +546,6 @@ onMounted(async () => {
// 获取后台互动 // 获取后台互动
startLiveInterval(); startLiveInterval();
// 获取后台主视频
StartIntervalMainVideo();
// 本地轮询获取要播放的互动视频 // 本地轮询获取要播放的互动视频
openInterval(); openInterval();
// 本地轮询获取要播放的主视频 // 本地轮询获取要播放的主视频
......
...@@ -330,14 +330,11 @@ const onSaveDrafts = async () => { ...@@ -330,14 +330,11 @@ const onSaveDrafts = async () => {
loading.value = true; loading.value = true;
let res: any = await createDrafts(params); let res: any = await createDrafts(params);
if (res.code == 0) { if (res.code == 0) {
show_message('保存成功', 'success');
// 清空edit // 清空edit
store.commit('live/clearEditLive'); store.commit('live/clearEditLive');
// 清空createLive // 清空createLive
store.commit('live/clearCreateLive'); store.commit('live/clearCreateLive');
submitSuccessed('保存成功');
// 回首页
backHome();
} }
loading.value = false; loading.value = false;
} catch (e) { } 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