|
|
@@ -119,7 +119,7 @@ export default {
|
|
|
if(this.liveId == null) {
|
|
|
return;
|
|
|
}
|
|
|
- this.getLive();
|
|
|
+ this.getLiveVideo();
|
|
|
},
|
|
|
// 初始化时立即执行一次
|
|
|
immediate: true
|
|
|
@@ -133,7 +133,7 @@ export default {
|
|
|
// }
|
|
|
// if(this.liveId == null) {
|
|
|
// this.$message.error("页面错误,请联系管理员");
|
|
|
- // return;
|
|
|
+ // return;g
|
|
|
// }
|
|
|
// this.getLive();
|
|
|
},
|
|
|
@@ -149,8 +149,7 @@ export default {
|
|
|
addLiveVideo(doParam).then(response => {
|
|
|
if (response.code == 200) {
|
|
|
this.$message.success("上传成功");
|
|
|
- this.videoList = []
|
|
|
- this.videoList.push(doParam)
|
|
|
+ this.getLiveVideo()
|
|
|
} else {
|
|
|
this.$message.warning(response.msg);
|
|
|
}
|
|
|
@@ -182,6 +181,7 @@ export default {
|
|
|
|
|
|
this.videoList.push(dataEntity);
|
|
|
});
|
|
|
+ this.loading = false;
|
|
|
},
|
|
|
/**
|
|
|
* 提取文件名称核心方法
|
|
|
@@ -247,11 +247,7 @@ export default {
|
|
|
// 上传视频处理
|
|
|
handleUploadVideo() {
|
|
|
// 模拟上传视频逻辑,实际需调用上传组件或接口
|
|
|
- if (this.liveInfo.liveType == 1) {
|
|
|
- this.open = true;
|
|
|
- }else{
|
|
|
- this.$message.error("仅直播可上传预告片段");
|
|
|
- }
|
|
|
+ this.open = true;
|
|
|
},
|
|
|
},
|
|
|
};
|