Commit c333c54e by xuyl

优化直播间

1 parent 820170cd
......@@ -385,10 +385,13 @@ export default {
Object.keys(res).forEach(i => {
this.liveRoom[i] = res[i] || this.liveRoom[i];
});
console.log(this.liveRoom)
if (res.preLiveMediaType == "0") {
this.liveRoom.preLiveMediaType = '0'
this.liveRoom.preLiveMediaFilePic = res.preLiveMediaFile;
this.liveRoom.preLiveMediaCoverPic = res.preLiveMediaCover;
} else {
this.liveRoom.preLiveMediaType = '1'
this.liveRoom.preLiveMediaFileVid = res.preLiveMediaFile;
this.liveRoom.preLiveMediaCoverVid = res.preLiveMediaCover;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!