Commit 23f6e78a authored by 张九刚's avatar 张九刚

fix: 在品牌和首页中添加视频 URL 处理逻辑,确保视频链接正确拼接

parent cacfb599
......@@ -183,6 +183,9 @@ export default {
this.ipDesc = data.ipDesc;
this.swiperIconList = data.swiperIconList;
this.testVideoUrl = data.videoUrl;
if(data.videoUrl.indexOf('http') === -1){
data.videoUrl = this.$baseUrl + data.videoUrl;
}
this.currentVideoUrl = data.videoUrl;
this.channel = data.channel;
}
......
......@@ -276,6 +276,9 @@ export default {
},
jumpLink(link, videoUrl) {
if (videoUrl) {
if(videoUrl.indexOf('http') === -1){
videoUrl = this.$baseUrl + videoUrl;
}
// 弹出视频
this.currentVideoUrl = videoUrl;
this.showVideo = true;
......
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