Pārlūkot izejas kodu

下载视频页面兼容性处理

release
HolyKnightIX pirms 2 gadiem
vecāks
revīzija
50b4ce9d0d
1 mainītis faili ar 11 papildinājumiem un 4 dzēšanām
  1. +11
    -4
      src/views/model/downloadVideo.vue

+ 11
- 4
src/views/model/downloadVideo.vue Parādīt failu

@@ -69,12 +69,19 @@ export default {
try {
const res = await doGetVideoDetialById(id);
console.log(res, "视频详情");
this.coverUrl = res.data.coverURL;
this.videoUrl = res.data.videoUrl;
this.open();
if (res.data.success) {
this.coverUrl = res.data.coverURL;
this.videoUrl = res.data.videoUrl;
this.open();
} else {
this.videoUrl = this.$route.query.videoUrl;
this.open();
}
} catch (error) {
console.log(error, "error");
Toast.fail(error.message);
// Toast.fail(error.message);
this.videoUrl = this.$route.query.videoUrl;
this.open();
}
},



Notiek ielāde…
Atcelt
Saglabāt